C# Class MsgPack.Rpc.Client.RequestMessageAsyncResult

IAsyncResult implementation for async RPC.
Inheritance: MessageAsyncResult
Show file Open project: yfakariya/msgpack-rpc-cli Class Usage Examples

Public Methods

Method Description
OnCompleted ( MsgPack.Rpc.Client.Protocols.ClientResponseContext context, Exception exception, bool completedSynchronously ) : void

Processes asynchronous operation completion logic.

RequestMessageAsyncResult ( Object owner, int messageId, AsyncCallback asyncCallback, object asyncState ) : System

Initializes a new instance of the RequestMessageAsyncResult class.

Method Details

OnCompleted() public method

Processes asynchronous operation completion logic.
public OnCompleted ( MsgPack.Rpc.Client.Protocols.ClientResponseContext context, Exception exception, bool completedSynchronously ) : void
context MsgPack.Rpc.Client.Protocols.ClientResponseContext The response context which holds response data.
exception System.Exception The exception occured.
completedSynchronously bool When operation is completed same thread as initiater then true; otherwise, false.
return void

RequestMessageAsyncResult() public method

Initializes a new instance of the RequestMessageAsyncResult class.
/// is null. ///
public RequestMessageAsyncResult ( Object owner, int messageId, AsyncCallback asyncCallback, object asyncState ) : System
owner Object /// The owner of asynchrnous invocation. This value will not be null. ///
messageId int The ID of message.
asyncCallback AsyncCallback /// The callback of asynchrnous invocation which should be called in completion. /// This value can be null. ///
asyncState object /// The state object of asynchrnous invocation which will be passed to . /// This value can be null. ///
return System