Ejemplo n.º 1
0
 /// <summary>
 /// When overridden in a derived class, begins an asynchronous operation to reply
 /// to the request associated with the current context
 /// </summary>
 /// <param name="message">The incoming System.ServiceModel.Channels.Message that contains the request</param>
 /// <param name="callback">The System.AsyncCallback delegate that receives the notification of the asynchronous
 /// reply operation completion</param>
 /// <param name="state">An object, specified by the application, that contains state information
 /// associated with the asynchronous reply operation</param>
 /// <returns>The System.IAsyncResult that references the asynchronous reply operation</returns>
 public override IAsyncResult BeginReply(Message message, AsyncCallback callback, object state)
 {
     _asyncReply = new AsyncReply(Reply);
     return(_asyncReply.BeginInvoke(message, TimeSpan.MaxValue, callback, state));
 }