ערוך

שתף באמצעות


IReplyChannel.EndReceiveRequest(IAsyncResult) Method

Definition

Completes an asynchronous operation to receive an available request.

public:
 System::ServiceModel::Channels::RequestContext ^ EndReceiveRequest(IAsyncResult ^ result);
public System.ServiceModel.Channels.RequestContext EndReceiveRequest (IAsyncResult result);
abstract member EndReceiveRequest : IAsyncResult -> System.ServiceModel.Channels.RequestContext
Public Function EndReceiveRequest (result As IAsyncResult) As RequestContext

Parameters

result
IAsyncResult

The IAsyncResult returned by a call to the BeginReceive method.

Returns

The RequestContext used to construct a reply to the request.

Examples

The following code illustrates how to implement this method:

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

Remarks

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.

Applies to