public IAsyncResult BeginSend <T>(BMethodRequest methodRequest, AsyncCallback callback, object state) { BAsyncProgModel <T> asyncResult = new BAsyncProgModel <T>(callback, state); BAsyncResultReceiveMethod <T> outerResult = new BAsyncResultReceiveMethod <T>(asyncResult); assignSessionThenSendMethod(methodRequest, outerResult); return(asyncResult); }
public void sendMethod <T>(BMethodRequest methodRequest, BAsyncResult <T> asyncResult) { BAsyncResultReceiveMethod <T> outerResult = new BAsyncResultReceiveMethod <T>(asyncResult); assignSessionThenSendMethod(methodRequest, outerResult); }