RequestContext.Reply Method

Definition

Replies to a request message.

Overloads

Reply(Message)

When overridden in a derived class, replies to a request message.

Reply(Message, TimeSpan)

When overridden in a derived class, replies to a request message within a specified interval of time.

Reply(Message)

Source:
RequestContext.cs
Source:
RequestContext.cs
Source:
RequestContext.cs

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)

Parameters

message
Message

The incoming Message that contains the request.

Remarks

Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. The thread is blocked up to the specified timeout.

If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. This method receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the channel or the time-out occurs.

Applies to

Reply(Message, TimeSpan)

Source:
RequestContext.cs
Source:
RequestContext.cs
Source:
RequestContext.cs

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)

Parameters

message
Message

The incoming Message that contains the request.

timeout
TimeSpan

The TimeSpan that specifies the interval of time to wait for the reply to a request.

Remarks

Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. The thread is blocked up to the specified timeout.

If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. This method receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the channel or the time-out occurs.

Applies to