Redigera

Dela via


ChannelListenerBase Constructors

Definition

Initializes a new instance of the ChannelListenerBase class.

Overloads

ChannelListenerBase()

Initializes a new instance of the ChannelListenerBase class.

ChannelListenerBase(IDefaultCommunicationTimeouts)

Initializes a new instance of the ChannelListenerBase class with specified default communication timeouts.

Remarks

The default ChannelListenerBase() constructor initializes timeout properties with the service model timeout values when exchanging messages. The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

ChannelListenerBase()

Initializes a new instance of the ChannelListenerBase class.

protected:
 ChannelListenerBase();
protected ChannelListenerBase ();
Protected Sub New ()

Remarks

The parameterless constructor initializes timeout properties with the service model timeout values when exchanging messages. The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

Applies to

ChannelListenerBase(IDefaultCommunicationTimeouts)

Initializes a new instance of the ChannelListenerBase class with specified default communication timeouts.

protected:
 ChannelListenerBase(System::ServiceModel::IDefaultCommunicationTimeouts ^ timeouts);
protected ChannelListenerBase (System.ServiceModel.IDefaultCommunicationTimeouts timeouts);
new System.ServiceModel.Channels.ChannelListenerBase : System.ServiceModel.IDefaultCommunicationTimeouts -> System.ServiceModel.Channels.ChannelListenerBase
Protected Sub New (timeouts As IDefaultCommunicationTimeouts)

Parameters

timeouts
IDefaultCommunicationTimeouts

The IDefaultCommunicationTimeouts that specify the default timeouts for open, send, receive, and close operations when exchanging messages.

Remarks

Use ChannelListenerBase(IDefaultCommunicationTimeouts) instead of the parameterless constructor if you want to specify custom values for the open, send, receive, and close operation timeouts instead of using the service model default values.

Applies to