Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
public interface IDefaultCommunicationTimeouts
public interface IDefaultCommunicationTimeouts
Not applicable.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
© 2018 Microsoft