RequestContext.Reply Método

Definição

Responde a uma mensagem de solicitação.Replies to a request message.

Sobrecargas

Reply(Message)

Quando substituído em uma classe derivada, responde a uma mensagem de solicitação.When overridden in a derived class, replies to a request message.

Reply(Message, TimeSpan)

Quando substituído em uma classe derivada, responde a uma mensagem de solicitação dentro de um intervalo de tempo especificado.When overridden in a derived class, replies to a request message within a specified interval of time.

Reply(Message)

Quando substituído em uma classe derivada, responde a uma mensagem de solicitação.When overridden in a derived class, replies to a request message.

public:
 abstract void Reply(System::ServiceModel::Channels::Message ^ message);
public abstract void Reply (System.ServiceModel.Channels.Message message);
abstract member Reply : System.ServiceModel.Channels.Message -> unit
Public MustOverride Sub Reply (message As Message)

Parâmetros

message
Message

O Message de entrada que contém a solicitação.The incoming Message that contains the request.

Comentários

Use Reply quando for aceitável que o thread atual seja bloqueado enquanto responde à mensagem de solicitação.Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. O thread está bloqueado até o especificado timeout .The thread is blocked up to the specified timeout.

Se o processamento do aplicativo precisar continuar sem aguardar a conclusão da resposta, use o BeginReply método assíncrono.If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. Esse método recebe a notificação, por meio de um retorno de chamada, da identidade do manipulador de eventos para a operação.This method receives notification, through a callback, of the identity of the event handler for the operation. A operação não será concluída até que uma mensagem seja disponibilizada no canal ou o tempo limite ocorra.The operation is not complete until either a message becomes available in the channel or the time-out occurs.

Aplica-se a

Reply(Message, TimeSpan)

Quando substituído em uma classe derivada, responde a uma mensagem de solicitação dentro de um intervalo de tempo especificado.When overridden in a derived class, replies to a request message within a specified interval of time.

public:
 abstract void Reply(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout);
public abstract void Reply (System.ServiceModel.Channels.Message message, TimeSpan timeout);
abstract member Reply : System.ServiceModel.Channels.Message * TimeSpan -> unit
Public MustOverride Sub Reply (message As Message, timeout As TimeSpan)

Parâmetros

message
Message

O Message de entrada que contém a solicitação.The incoming Message that contains the request.

timeout
TimeSpan

O TimeSpan que especifica o intervalo de tempo a esperar a resposta a uma solicitação.The TimeSpan that specifies the interval of time to wait for the reply to a request.

Comentários

Use Reply quando for aceitável que o thread atual seja bloqueado enquanto responde à mensagem de solicitação.Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. O thread está bloqueado até o especificado timeout .The thread is blocked up to the specified timeout.

Se o processamento do aplicativo precisar continuar sem aguardar a conclusão da resposta, use o BeginReply método assíncrono.If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. Esse método recebe a notificação, por meio de um retorno de chamada, da identidade do manipulador de eventos para a operação.This method receives notification, through a callback, of the identity of the event handler for the operation. A operação não será concluída até que uma mensagem seja disponibilizada no canal ou o tempo limite ocorra.The operation is not complete until either a message becomes available in the channel or the time-out occurs.

Aplica-se a