Aracılığıyla paylaş


EndpointDispatcher.DispatchRuntime Özellik

Tanım

DispatchRuntime Bir hizmet uç noktası veya istemci geri çağırma uç noktası arasında çalışma zamanı davranışını incelemek, değiştirmek veya genişletmek için kullanılan nesneyi alır.

public:
 property System::ServiceModel::Dispatcher::DispatchRuntime ^ DispatchRuntime { System::ServiceModel::Dispatcher::DispatchRuntime ^ get(); };
public System.ServiceModel.Dispatcher.DispatchRuntime DispatchRuntime { get; }
member this.DispatchRuntime : System.ServiceModel.Dispatcher.DispatchRuntime
Public ReadOnly Property DispatchRuntime As DispatchRuntime

Özellik Değeri

DispatchRuntime

Bir DispatchRuntime hizmet uç noktası veya istemci geri çağırma uç noktası arasında çalışma zamanı davranışını incelemek, değiştirmek veya genişletmek için kullanılan nesne.

Örnekler

Aşağıdaki kod örneği, uç nokta için öğesini bulmak System.ServiceModel.Dispatcher.DispatchRuntime için öğesinin kullanımını EndpointDispatcher gösterir ve uç nokta davranışını kullanarak özel bir ileti denetçisi ekler.

// IEndpointBehavior Members
public void AddBindingParameters(ServiceEndpoint serviceEndpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
{
  return;
}

public void ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior)
{
  behavior.MessageInspectors.Add(new EndpointBehaviorMessageInspector());
}

public void ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher)
{
  endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new EndpointBehaviorMessageInspector());
}

public void Validate(ServiceEndpoint serviceEndpoint)
{
  return;
}

Açıklamalar

DispatchRuntime Çalışma zamanı değerlerini değiştirmek veya uç noktanın DispatchRuntime tamamı için özel çalışma zamanı uzantıları eklemek üzere nesnesini almak için özelliğini kullanın. özelliğinden DispatchRuntime uç noktanın koleksiyonuna System.ServiceModel.Dispatcher.DispatchOperation da gidebilirsiniz.

Şunlara uygulanır