public void SendRequest(long clientID, RequestMessageBase requestMessage)
 {
     _sendModel(clientID, requestMessage);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Send a request message and get a reponse with specific timeout.
 /// </summary>
 /// <typeparam name="T">The type which is derived from ResponseMessageBase.</typeparam>
 /// <param name="requestMsg">The request to be sent.</param>
 /// <param name="timeout">The time out of the request, in millseconds.</param>
 /// <returns>A task object indicating the asynchronous query operation.</returns>
 public Task <T> QueryAsync <T>(RequestMessageBase requestMsg, int timeout) where T : ResponseMessageBase
 {
     return(_reqResponseAgent.QueryAsync <T>(requestMsg, timeout));
 }