Property | Type | Description | |
---|---|---|---|
EnsureConnected | void | ||
NextId | int | ||
OnTranportShutdownComplete | void | ||
VerifyIsNotDisposed | void |
Method | Description | |
---|---|---|
BeginCall ( string methodName, object arguments, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult |
Calls specified remote method with specified argument asynchronously.
|
|
BeginNotify ( string methodName, object arguments, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult |
Sends specified remote method with specified argument as notification message asynchronously.
|
|
Call ( string methodName ) : MessagePackObject |
Calls specified remote method with specified argument and returns its result synchronously.
|
|
CallAsync ( string methodName, object arguments, object asyncState ) : Task |
Calls specified remote method with specified argument asynchronously. In .NET Framework 4.0, Silverlight 5, or Windows Phone 7.5, the exception will be thrown as AggregateException in continuation Task. But this is because of runtime limitation, so this behavior will change in the future. You can BeginCall and EndCall to get appropriate exception directly. |
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
EndCall ( IAsyncResult asyncResult ) : MessagePackObject |
Finishes asynchronous method invocation and returns its result. You must call this method to clean up internal bookkeeping information and handles communication error even if the remote method returns |
|
EndNotify ( IAsyncResult asyncResult ) : void |
Finishes asynchronous method invocation. You must call this method to clean up internal bookkeeping information and handles communication error. |
|
Notify ( string methodName ) : void |
Sends specified remote method with specified argument as notification message synchronously.
|
|
NotifyAsync ( string methodName, object arguments, object asyncState ) : Task |
Sends specified remote method with specified argument as notification message asynchronously. In .NET Framework 4.0, Silverlight 5, or Windows Phone 7.5, the exception will be thrown as AggregateException in continuation Task. But this is because of runtime limitation, so this behavior will change in the future. You can BeginNotify and EndNotify to get appropriate exception directly. |
|
RpcClient ( |
Initializes a new instance of the RpcClient class.
|
|
RpcClient ( |
Initializes a new instance of the RpcClient class.
|
|
RpcClient ( |
Initializes a new instance of the RpcClient class.
|
|
RpcClient ( |
Initializes a new instance of the RpcClient class.
|
|
Shutdown ( ) : void |
Initiates shutdown of current connection and wait to complete it.
|
|
ShutdownAsync ( ) : Task |
Initiates shutdown of current connection.
|
Method | Description | |
---|---|---|
EnsureConnected ( ) : void | ||
NextId ( ) : int | ||
OnTranportShutdownComplete ( object sender, |
||
VerifyIsNotDisposed ( ) : void |
public BeginCall ( string methodName, object arguments, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult | ||
methodName | string | /// The name of target method. /// |
arguments | object | /// Argument to be passed to the server. /// All values must be able to be serialized with MessagePack serializer. /// |
asyncCallback | AsyncCallback |
/// The callback method invoked when the notification is sent or the reponse is received.
/// This value can be |
asyncState | object |
/// User supplied state object which can be gotten via |
return | IAsyncResult |
public BeginNotify ( string methodName, object arguments, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult | ||
methodName | string | /// The name of target method. /// |
arguments | object | /// Argument to be passed to the server. /// All values must be able to be serialized with MessagePack serializer. /// |
asyncCallback | AsyncCallback |
/// The callback method invoked when the notification is sent or the reponse is received.
/// This value can be |
asyncState | object |
/// User supplied state object which can be gotten via |
return | IAsyncResult |
public Call ( string methodName ) : MessagePackObject | ||
methodName | string | /// The name of target method. /// |
return | MessagePackObject |
public CallAsync ( string methodName, object arguments, object asyncState ) : Task |
||
methodName | string | /// The name of target method. /// |
arguments | object | /// Argument to be passed to the server. /// All values must be able to be serialized with MessagePack serializer. /// |
asyncState | object |
/// User supplied state object to be set as |
return | Task |
public EndCall ( IAsyncResult asyncResult ) : MessagePackObject | ||
asyncResult | IAsyncResult |
/// |
return | MessagePackObject |
public EndNotify ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult |
/// |
return | void |
public Notify ( string methodName ) : void | ||
methodName | string | /// The name of target method. /// |
return | void |
public NotifyAsync ( string methodName, object arguments, object asyncState ) : Task | ||
methodName | string | /// The name of target method. /// |
arguments | object | /// Argument to be passed to the server. /// All values must be able to be serialized with MessagePack serializer. /// |
asyncState | object |
/// User supplied state object to be set as |
return | Task |
public RpcClient ( |
||
targetEndPoint |
/// |
|
return | System |
public RpcClient ( |
||
targetEndPoint |
/// |
|
configuration | MsgPack.Rpc.Client.RpcClientConfiguration |
/// A |
return | System |
public RpcClient ( |
||
targetEndPoint |
/// |
|
configuration | MsgPack.Rpc.Client.RpcClientConfiguration |
/// A |
serializationContext | MsgPack.Serialization.SerializationContext |
/// A |
return | System |
public RpcClient ( |
||
targetEndPoint |
/// |
|
serializationContext | MsgPack.Serialization.SerializationContext |
/// A |
return | System |