ChannelManagerBase 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于管理与通道和侦听器工厂关联的默认超时的基本实现。
public ref class ChannelManagerBase abstract : System::ServiceModel::Channels::CommunicationObject, System::ServiceModel::IDefaultCommunicationTimeouts
public abstract class ChannelManagerBase : System.ServiceModel.Channels.CommunicationObject, System.ServiceModel.IDefaultCommunicationTimeouts
type ChannelManagerBase = class
inherit CommunicationObject
interface IDefaultCommunicationTimeouts
Public MustInherit Class ChannelManagerBase
Inherits CommunicationObject
Implements IDefaultCommunicationTimeouts
- 继承
- 派生
- 实现
注解
具体而言,此类为与通道工厂和侦听器关联的默认超时提供常见的基实现 ChannelFactoryBase 和 ChannelListenerBase 通道管理器类。 通道通过使用其中 CreateChannel 一种方法添加到管理器维护的列表中。 为生成的通道和侦听器使用的发送和接收超时的抽象属性指定,以协调为派生通道和侦听器工厂设置的值。
为 ChannelBase自定义通道提供基本实现的自定义通道,获取其打开、关闭、发送和接收操作 ChannelManagerBase 的默认通信超时。
它还 ChannelBase 负责为你管理经理。 除了公开对管理器的引用之外,基类还会在创建和销毁通道时通知管理器。 但对经理的引用只有在通道被销毁之前才好。
构造函数
| 名称 | 说明 |
|---|---|
| ChannelManagerBase() |
初始化 ChannelManagerBase 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| DefaultCloseTimeout |
在派生类中重写时,获取为完成关闭操作提供的默认时间间隔。 (继承自 CommunicationObject) |
| DefaultOpenTimeout |
在派生类中重写时,获取为打开操作完成提供的默认时间间隔。 (继承自 CommunicationObject) |
| DefaultReceiveTimeout |
在派生类中重写时,获取通道必须完成消息接收的默认时间间隔。 |
| DefaultSendTimeout |
在派生类中重写时,获取通道必须完成消息发送的默认时间间隔。 |
| IsDisposed |
获取一个值,该值指示是否已释放通信对象。 (继承自 CommunicationObject) |
| State |
获取一个值,该值指示通信对象的当前状态。 (继承自 CommunicationObject) |
| ThisLock |
获取在状态转换期间保护类实例的互斥锁。 (继承自 CommunicationObject) |
方法
事件
| 名称 | 说明 |
|---|---|
| Closed |
当通信对象转换为关闭状态时发生。 (继承自 CommunicationObject) |
| Closing |
当通信对象转换为结束状态时发生。 (继承自 CommunicationObject) |
| Faulted |
当通信对象转换为错误状态时发生。 (继承自 CommunicationObject) |
| Opened |
当通信对象转换为打开状态时发生。 (继承自 CommunicationObject) |
| Opening |
当通信对象转换为打开状态时发生。 (继承自 CommunicationObject) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IDefaultCommunicationTimeouts.CloseTimeout |
获取通信对象调用的 close 方法超时的时间间隔。 |
| IDefaultCommunicationTimeouts.OpenTimeout |
获取打开方法(由通信对象调用)超时的时间间隔。 |
| IDefaultCommunicationTimeouts.ReceiveTimeout |
获取通信对象调用的接收方法超时的时间间隔。 |
| IDefaultCommunicationTimeouts.SendTimeout |
获取由通信对象调用的发送方法超时的时间间隔。 |