ChannelListenerBase<TChannel> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ChannelListenerBase<TChannel> 类的新实例。
重载
ChannelListenerBase<TChannel>() |
初始化 ChannelListenerBase<TChannel> 类的新实例。 |
ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts) |
使用指定的默认通信超时初始化 ChannelListenerBase<TChannel> 类的新实例。 |
注解
在交换消息时,默认的 ChannelListenerBase<TChannel>() 构造函数使用服务模型超时值对超时属性进行初始化。 打开、发送和关闭操作的默认值为 1 分钟,接收操作的默认值为 10 分钟。 若要为这些操作超时指定其他值,请使用 ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)。
ChannelListenerBase<TChannel>()
初始化 ChannelListenerBase<TChannel> 类的新实例。
protected:
ChannelListenerBase();
protected ChannelListenerBase ();
Protected Sub New ()
注解
在交换消息时,无参数的构造函数将初始化超时属性与服务模型的超时值。 打开、发送和关闭操作的默认值为 1 分钟,接收操作的默认值为 10 分钟。 若要为这些操作超时指定其他值,请使用 ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)。
适用于
ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)
使用指定的默认通信超时初始化 ChannelListenerBase<TChannel> 类的新实例。
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)
参数
- timeouts
- IDefaultCommunicationTimeouts
指定交换消息时打开、发送、接收和关闭操作的默认超时的 IDefaultCommunicationTimeouts。
注解
ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)如果要为打开、发送、接收和关闭操作超时指定自定义值(而不是使用服务模型的默认值),请使用而不是无参数构造函数。