ChannelManagerService 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ChannelManagerService 类的新实例。
重载
ChannelManagerService()
初始化 ChannelManagerService 类的新实例。
public:
ChannelManagerService();
public ChannelManagerService();
Public Sub New ()
适用于
ChannelManagerService(IList<ServiceEndpoint>)
初始化 ChannelManagerService 类的新实例。
public:
ChannelManagerService(System::Collections::Generic::IList<System::ServiceModel::Description::ServiceEndpoint ^> ^ endpoints);
public ChannelManagerService(System.Collections.Generic.IList<System.ServiceModel.Description.ServiceEndpoint> endpoints);
new System.Workflow.Runtime.Hosting.ChannelManagerService : System.Collections.Generic.IList<System.ServiceModel.Description.ServiceEndpoint> -> System.Workflow.Runtime.Hosting.ChannelManagerService
Public Sub New (endpoints As IList(Of ServiceEndpoint))
参数
- endpoints
- IList<ServiceEndpoint>
服务终结点的集合。
注解
类的 ChannelManagerService 实例通常由运行时使用配置文件创建。
服务构造函数中定义的终结点将用于创建与配置名称匹配的 ChannelToken通道。 在配置中定义的终结点优先于代码中定义的终结点,因此,如果通过代码添加的服务终结点的名称和协定类型与配置文件中的终结点相同,则不会使用代码中定义的终结点。
适用于
ChannelManagerService(NameValueCollection)
初始化 ChannelManagerService 类的新实例。
public:
ChannelManagerService(System::Collections::Specialized::NameValueCollection ^ parameters);
public ChannelManagerService(System.Collections.Specialized.NameValueCollection parameters);
new System.Workflow.Runtime.Hosting.ChannelManagerService : System.Collections.Specialized.NameValueCollection -> System.Workflow.Runtime.Hosting.ChannelManagerService
Public Sub New (parameters As NameValueCollection)
参数
- parameters
- NameValueCollection
服务的配置参数。
注解
支持以下参数:
-
idleTimeout:缓存通道可以空闲的最大值 TimeSpan 。 -
leaseTimeout:缓存通道可以签出或使用TimeSpan的最大SendActivity数量。 -
maxIdleChannelsPerEndpoint:与可在任意时间缓存的单个终结点匹配的最大空闲通道数。
类的 ChannelManagerService 实例通常由运行时使用配置文件创建。
适用于
ChannelManagerService(ChannelPoolSettings)
初始化 ChannelManagerService 类的新实例。
public:
ChannelManagerService(System::ServiceModel::Channels::ChannelPoolSettings ^ settings);
public ChannelManagerService(System.ServiceModel.Channels.ChannelPoolSettings settings);
new System.Workflow.Runtime.Hosting.ChannelManagerService : System.ServiceModel.Channels.ChannelPoolSettings -> System.Workflow.Runtime.Hosting.ChannelManagerService
Public Sub New (settings As ChannelPoolSettings)
参数
- settings
- ChannelPoolSettings
此服务管理的通道池的配额设置。
适用于
ChannelManagerService(ChannelPoolSettings, IList<ServiceEndpoint>)
初始化 ChannelManagerService 类的新实例。
public:
ChannelManagerService(System::ServiceModel::Channels::ChannelPoolSettings ^ settings, System::Collections::Generic::IList<System::ServiceModel::Description::ServiceEndpoint ^> ^ endpoints);
public ChannelManagerService(System.ServiceModel.Channels.ChannelPoolSettings settings, System.Collections.Generic.IList<System.ServiceModel.Description.ServiceEndpoint> endpoints);
new System.Workflow.Runtime.Hosting.ChannelManagerService : System.ServiceModel.Channels.ChannelPoolSettings * System.Collections.Generic.IList<System.ServiceModel.Description.ServiceEndpoint> -> System.Workflow.Runtime.Hosting.ChannelManagerService
Public Sub New (settings As ChannelPoolSettings, endpoints As IList(Of ServiceEndpoint))
参数
- settings
- ChannelPoolSettings
此服务管理的通道池的配额设置。
- endpoints
- IList<ServiceEndpoint>
服务终结点的集合。