Język

ChannelManagerService Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ChannelManagerService.

Przeciążenia

ChannelManagerService()

Inicjuje nowe wystąpienie klasy ChannelManagerService.

public:
 ChannelManagerService();
public ChannelManagerService();
Public Sub New ()

Dotyczy

ChannelManagerService(IList<ServiceEndpoint>)

Inicjuje nowe wystąpienie klasy 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))

Parametry

endpoints
IList<ServiceEndpoint>

Kolekcja punktów końcowych usługi.

Uwagi

ChannelManagerService Wystąpienia klasy są zwykle tworzone przez środowisko uruchomieniowe przy użyciu plików konfiguracji.

Punkty końcowe zdefiniowane w konstruktorze usługi będą używane do tworzenia kanałów, które są zgodne z nazwą konfiguracji w obiekcie ChannelToken. Punkty końcowe zdefiniowane w konfiguracji mają pierwszeństwo przed punktami końcowymi zdefiniowanymi w kodzie, więc jeśli punkt końcowy usługi dodany za pomocą kodu ma taką samą nazwę i typ kontraktu jak jeden w pliku konfiguracji, punkt końcowy zdefiniowany w kodzie nie będzie używany.

Dotyczy

ChannelManagerService(NameValueCollection)

Inicjuje nowe wystąpienie klasy 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)

Parametry

parameters
NameValueCollection

Parametry konfiguracji usługi.

Uwagi

Obsługiwane są następujące parametry:

  • idleTimeout: maksymalna liczba TimeSpan bezczynności buforowanego kanału.
  • leaseTimeout: maksymalna TimeSpan liczba wyewidencjonowanych lub używanych kanałów buforowanych przez element SendActivity.
  • maxIdleChannelsPerEndpoint: maksymalna liczba bezczynnych kanałów pasujących do pojedynczego punktu końcowego, który można buforować w dowolnym momencie.

ChannelManagerService Wystąpienia klasy są zwykle tworzone przez środowisko uruchomieniowe przy użyciu plików konfiguracji.

Dotyczy

ChannelManagerService(ChannelPoolSettings)

Inicjuje nowe wystąpienie klasy 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)

Parametry

settings
ChannelPoolSettings

Ustawienia limitów przydziału dla puli kanałów zarządzanych przez tę usługę.

Dotyczy

ChannelManagerService(ChannelPoolSettings, IList<ServiceEndpoint>)

Inicjuje nowe wystąpienie klasy 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))

Parametry

settings
ChannelPoolSettings

Ustawienia limitów przydziału dla puli kanałów zarządzanych przez tę usługę.

endpoints
IList<ServiceEndpoint>

Kolekcja punktów końcowych usługi.

Dotyczy