IReplyChannel.BeginReceiveRequest Method (TimeSpan, AsyncCallback, Object)
Begins an asynchronous operation to receive an available request with a specified timeout.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
IAsyncResult BeginReceiveRequest( TimeSpan timeout, AsyncCallback callback, Object state )
- Type: System.TimeSpan
The Timespan that specifies the interval of time to wait for the reception of an available request.
- Type: System.AsyncCallback
The AsyncCallback delegate that receives the notification of the asynchronous receive that a request operation completes.
- Type: System.Object
An object, specified by the application, that contains state information associated with the asynchronous receive of a request operation.
The method implements the standard pattern for invoking ReceiveRequest(TimeSpan)asynchronously. The timeout set on this method overrides a receive timeout set on the binding that is used to configure the connection.
If the request message received is larger that the maximum message size allowed by the binding being used, a QuotaExceededException is thrown. The maximum message size is set by the MaxReceivedMessageSize property. The default value is 65536 bytes.