Edit

Share via


IReplyChannel.EndTryReceiveRequest(IAsyncResult, RequestContext) Method

Definition

Completes the specified asynchronous operation to receive a request message.

public:
 bool EndTryReceiveRequest(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::ServiceModel::Channels::RequestContext ^ % context);
public bool EndTryReceiveRequest (IAsyncResult result, out System.ServiceModel.Channels.RequestContext context);
abstract member EndTryReceiveRequest : IAsyncResult * RequestContext -> bool
Public Function EndTryReceiveRequest (result As IAsyncResult, ByRef context As RequestContext) As Boolean

Parameters

context
RequestContext

The RequestContext received.

Returns

true if a request message is received before the specified interval of time elapses; otherwise false.

Examples

The following code illustrates how to implement this method:

public bool EndTryReceiveRequest(IAsyncResult result, out RequestContext requestContext)
{
    return TryReceiveRequestAsyncResult.End(result, out requestContext);
}

Applies to