IDefaultCommunicationTimeouts Interface

Defines the interface for specifying communication timeouts used by channels, channel managers such as channel listeners and channel factories, and service hosts.

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

public interface IDefaultCommunicationTimeouts

The IDefaultCommunicationTimeouts type exposes the following members.

  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsCloseTimeoutGets the interval of time after which the close method, invoked by a communication object, times out.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsOpenTimeoutGets the interval of time after which the open method, invoked by a communication object, times out.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsReceiveTimeoutGets the interval of time after which the receive method, invoked by a communication object, times out.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsSendTimeoutGets the interval of time after which the send method, invoked by a communication object, times out.
Top

This interface has four read-only properties that provide default timeout 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 which derive from ChannelFactoryBase and ChannelListenerBase. 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 timeouts on a per-channel or per-operation-basis, or on any other custom basis. When using the channel model, timeouts 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 timeouts are more in the background. They are controlled by the infrastructure machinery which flows timeouts from place to place on your behalf. IDefaultCommunicationTimeouts is one mechanism for providing that flow.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft