Compartir a través de


IDefaultCommunicationTimeouts Interface

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

Defines the interface for specifying the communication time-outs used by channels and channel managers, such as channel factories.

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

Syntax

'Declaration
Public Interface IDefaultCommunicationTimeouts
public interface IDefaultCommunicationTimeouts

The IDefaultCommunicationTimeouts type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone CloseTimeout Gets the interval of time after which the close method, invoked by a communication object, times out.
Public propertySupported by Silverlight for Windows Phone OpenTimeout Gets the interval of time after which the open method, invoked by a communication object, times out.
Public propertySupported by Silverlight for Windows Phone ReceiveTimeout Gets the interval of time after which the receive method, invoked by a communication object, times out.
Public propertySupported by Silverlight for Windows Phone SendTimeout Gets the interval of time after which the send method, invoked by a communication object, times out.

Top

Remarks

This interface has four read-only properties that provide default time-out values for the open, send, receive, and close methods that can be called on a communication object. Each implementation is responsible for obtaining the default values in whatever manner is appropriate for the implementation. This interface is implemented by ChannelBase, the base implementation for writing custom channels, and the ChannelManagerBase, the base implementation for writing custom channel managers that derive from ChannelFactoryBase. The interface is also implemented by the Binding class and then inherited from there by CustomBinding and the system-provided bindings, such as BasicHttpBinding.

When you use channels directly, you have the ability to explicitly specify time-outs for each channel or for each operation, or on any other custom basis. When using the channel model, time-outs are quite accessible when you want to control them.

When using the service model, on the other hand, you program against services and contracts, and time-outs are more in the background. They are controlled by the infrastructure machinery that flows time-outs from place to place on your behalf. IDefaultCommunicationTimeouts is one mechanism for providing that flow.

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.

See Also

Reference