IReplyChannel.EndReceiveRequest(IAsyncResult) Método

Definição

Conclui uma operação assíncrona para receber uma solicitação disponível.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

Parâmetros

result
IAsyncResult

O IAsyncResult retornado por uma chamada ao método BeginReceive.The IAsyncResult returned by a call to the BeginReceive method.

Retornos

RequestContext

O RequestContext usado para construir uma resposta para a solicitação.The RequestContext used to construct a reply to the request.

Exemplos

O código a seguir ilustra como implementar esse método:The following code illustrates how to implement this method:

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

Comentários

Se a mensagem de solicitação recebida for maior que o tamanho máximo de mensagem permitido pela Associação sendo usada, um QuotaExceededException será gerado.If the request message received is larger that the maximum message size allowed by the binding being used, a QuotaExceededException is thrown. O tamanho máximo da mensagem é definido pela MaxReceivedMessageSize propriedade.The maximum message size is set by the MaxReceivedMessageSize property. O valor padrão é 65536 bytes.The default value is 65536 bytes.

Notas aos Implementadores

A operação deve lançar um TimeoutException se o especificado timeout for excedido antes da conclusão da operação.The operation should throw a TimeoutException if the specified timeout is exceeded before the operation is completed.

Aplica-se a