ChannelDispatcher.Endpoints Propriedade

Definição

Obtém os dispatchers de ponto de extremidade que encaminham mensagens para os pontos de extremidade de canal.Gets the endpoint dispatchers which forward messages to the channel endpoints.

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::EndpointDispatcher ^> ^ Endpoints { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::EndpointDispatcher ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.EndpointDispatcher> Endpoints { get; }
member this.Endpoints : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.EndpointDispatcher>
Public ReadOnly Property Endpoints As SynchronizedCollection(Of EndpointDispatcher)

Valor da propriedade

Um SynchronizedCollection<T> dosEndpointDispatcher quais encaminhar mensagens para os pontos de extremidade do canal.A SynchronizedCollection<T> of EndpointDispatcher which forward messages to the channel endpoints.

Exemplos

Uri baseAddress = new Uri("http://localhost:8001/Simple");
ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress);

serviceHost.AddServiceEndpoint(
    typeof(ICalculator),
    new WSHttpBinding(),
    "CalculatorServiceObject");

serviceHost.Open();

ChannelDispatcher dispatcher = (ChannelDispatcher)serviceHost.ChannelDispatchers[0];
SynchronizedCollection<EndpointDispatcher> col = dispatcher.Endpoints;
Dim baseAddress As New Uri("http://localhost:8001/Simple")
Dim serviceHost As New ServiceHost(GetType(CalculatorService), baseAddress)

serviceHost.AddServiceEndpoint(GetType(ICalculator), New WSHttpBinding(), "CalculatorServiceObject")

serviceHost.Open()

Dim dispatcher As ChannelDispatcher = CType(serviceHost.ChannelDispatchers(0), ChannelDispatcher)
Dim col As SynchronizedCollection(Of EndpointDispatcher) = dispatcher.Endpoints

Comentários

O ChannelDispatcher tem um Distinct EndpointDispatcher para cada ponto de extremidade ao qual o canal pode dar suporte.The ChannelDispatcher has a distinct EndpointDispatcher for each endpoint that the channel can support.

Use o EndpointDispatcher para obter acesso às propriedades de tempo de execução que permitem personalizar o tempo de execução em um ponto de extremidade inteiro.Use the EndpointDispatcher to obtain access to runtime properties that enable you to customize the runtime across an entire endpoint.

Aplica-se a