IReplyChannel.WaitForRequest Method (TimeSpan)
Returns a value that indicates whether a request message is received before a specified interval of time elapses.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Return ValueType: System.Boolean
true if a request is received before the specified interval of time elapses; otherwise false.
Callingdoes not result in a request message being received or processed in any way.
The BeginWaitForRequest(TimeSpan, AsyncCallback, Object) method exists primarily for transacted scenarios where the user wants to receive the message using a transaction. When using just ReceiveRequest normally for this, the user must create the transaction, and then call ReceiveRequest and hope the message arrives before the transaction times out, which may not be possible.
Instead, the user can call ReceiveRequest and be confident that they can get the message back before the transaction expires.and specify the time out (even infinite), then when a message arrives they can open the transaction, call
Notes to Implementers:
The operation returns false if the specified timeout is exceeded.
Available since 3.0