IInputChannel.WaitForMessage Method (TimeSpan)
Returns a value that indicates whether a message has arrived within a specified interval of time.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Return ValueType: System.Boolean
true if a message has arrived before the timeout has been exceeded; otherwise false.
Callingdoes not result in a message being received or processed in any other way.
Instead, the user can call Receive and be confident that they can get the message back before the transaction expires.with whatever time out they want (even infinite), then when a message arrives they can open the transaction, call
This method is synchronous, so it blocks the current thread until a message is available or the time out occurs. Use BeginWaitForMessage(TimeSpan, AsyncCallback, Object) method.when it is acceptable for the current thread to be blocked while it waits for a message to arrive in the queue. The thread is blocked up to the specified timeout. If you need the application processing to continue without waiting, use the asynchronous
Notes to Implementers:
The operation returns false if the specified timeout is exceeded, not a timeout exception.
Available since 8
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0