Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IReplyChannel::EndReceiveRequest Method (IAsyncResult^)

 

Completes an asynchronous operation to receive an available request.

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

RequestContext^ EndReceiveRequest(
	IAsyncResult^ result
)

Parameters

result
Type: System::IAsyncResult^

The IAsyncResult returned by a call to the BeginReceive method.

Return Value

Type: System.ServiceModel.Channels::RequestContext^

The RequestContext used to construct a reply to the request.

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.

Notes to Implementers:

The operation should throw a TimeoutException if the specified timeout is exceeded before the operation is completed.

The following code illustrates how to implement this method:

public RequestContext EndReceiveRequest(IAsyncResult result)
{
    return ReceiveRequestAsyncResult.End(result);
}

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft