IRequestChannel.EndRequest(IAsyncResult) Método
Definição
Conclui uma operação assíncrona para retornar uma resposta baseada em mensagem a uma solicitação transmitida.Completes an asynchronous operation to return a message-based response to a transmitted request.
public:
System::ServiceModel::Channels::Message ^ EndRequest(IAsyncResult ^ result);
public System.ServiceModel.Channels.Message EndRequest (IAsyncResult result);
abstract member EndRequest : IAsyncResult -> System.ServiceModel.Channels.Message
Public Function EndRequest (result As IAsyncResult) As Message
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
O Message recebido em resposta à solicitação.The Message received in response to the request.
Exemplos
O código a seguir mostra como implementar esse método.The following code shows how to implement this method.
public Message EndRequest(IAsyncResult result)
{
return this.InnerChannel.EndRequest(result);
}
Comentários
Se a mensagem de solicitação for maior que o tamanho máximo de mensagem permitido pela Associação sendo usada, um QuotaExceededException será lançado.If the request message 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.