RequestContext.Reply Method (Message, TimeSpan)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Syntax

'Declaration
Public MustOverride Sub Reply ( _
    message As Message, _
    timeout As TimeSpan _
)
public abstract void Reply(
    Message message,
    TimeSpan timeout
)

Parameters

  • timeout
    Type: System.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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.