1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #if !BESTHTTP_DISABLE_SIGNALR_CORE
- using System;
- namespace BestHTTP.SignalRCore.Messages
- {
- public struct Completion
- {
- public MessageTypes type;
- public string invocationId;
- }
- public struct CompletionWithResult
- {
- public MessageTypes type;
- public string invocationId;
- public object result;
- }
- public struct CompletionWithError
- {
- public MessageTypes type;
- public string invocationId;
- public string error;
- }
- public struct StreamItemMessage
- {
- public MessageTypes type;
- public string invocationId;
- public object item;
- }
- public struct InvocationMessage
- {
- public MessageTypes type;
- public string invocationId;
- public bool nonblocking;
- public string target;
- public object[] arguments;
- }
- public struct UploadInvocationMessage
- {
- public MessageTypes type;
- public string invocationId;
- public bool nonblocking;
- public string target;
- public object[] arguments;
- public string[] streamIds;
- }
- public struct CancelInvocationMessage
- {
- public MessageTypes type { get { return MessageTypes.CancelInvocation; } }
- public string invocationId;
- }
- public struct PingMessage
- {
- public MessageTypes type { get { return MessageTypes.Ping; } }
- }
- public struct CloseMessage
- {
- public MessageTypes type { get { return MessageTypes.Close; } }
- }
- public struct CloseWithErrorMessage
- {
- public MessageTypes type { get { return MessageTypes.Close; } }
- public string error;
- }
- }
- #endif
|