ChannelManagerService 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ChannelManagerService 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ChannelManagerService() |
初始化 ChannelManagerService 類別的新執行個體。 |
| ChannelManagerService(IList<ServiceEndpoint>) |
初始化 ChannelManagerService 類別的新執行個體。 |
| ChannelManagerService(NameValueCollection) |
初始化 ChannelManagerService 類別的新執行個體。 |
| ChannelManagerService(ChannelPoolSettings) |
初始化 ChannelManagerService 類別的新執行個體。 |
| ChannelManagerService(ChannelPoolSettings, IList<ServiceEndpoint>) |
初始化 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>
一組服務端點。