Rediger

Del via


ChannelListenerBase<TChannel> Constructors

Definition

Initializes a new instance of the ChannelListenerBase<TChannel> class.

Overloads

ChannelListenerBase<TChannel>()

Initializes a new instance of the ChannelListenerBase<TChannel> class.

ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)

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

Remarks

The default ChannelListenerBase<TChannel>() 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<TChannel>(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

ChannelListenerBase<TChannel>()

Initializes a new instance of the ChannelListenerBase<TChannel> 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<TChannel>(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

Applies to

ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)

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

protected:
 ChannelListenerBase(System::ServiceModel::IDefaultCommunicationTimeouts ^ timeouts);
protected ChannelListenerBase (System.ServiceModel.IDefaultCommunicationTimeouts timeouts);
new System.ServiceModel.Channels.ChannelListenerBase<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> : System.ServiceModel.IDefaultCommunicationTimeouts -> System.ServiceModel.Channels.ChannelListenerBase<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)>
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<TChannel>(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