IInputChannel.EndWaitForMessage Method (IAsyncResult)

 

Completes the specified asynchronous wait-for-a-message operation.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

bool EndWaitForMessage(
	IAsyncResult result
)

Parameters

result
Type: System.IAsyncResult

The IAsyncResult that identifies the BeginWaitForMessage(TimeSpan, AsyncCallback, Object) operation to finish, and from which to retrieve an end result.

Return Value

Type: System.Boolean

true if a message has arrived before the timeout has been exceeded; otherwise false.

The following code illustrates how to implement this method:

public bool EndWaitForMessage(IAsyncResult result)
{
    return this.InnerChannel.EndWaitForMessage(result);
}

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: