EndpointDispatcher.DispatchRuntime プロパティ

定義

サービス エンドポイントまたはクライアント コールバック エンドポイント全体のランタイム動作を検査、変更、または拡張するために使用する DispatchRuntime オブジェクトを取得します。

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

プロパティ値

DispatchRuntime

サービス エンドポイントまたはクライアント コールバック エンドポイント全体のランタイム動作を検査、変更、または拡張するために使用する DispatchRuntime オブジェクト。

次のコード例は、エンドポイントの EndpointDispatcher を検索するための System.ServiceModel.Dispatcher.DispatchRuntime の使用方法を示しています。

// 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;
}

注釈

DispatchRuntime プロパティは、ランタイム値の変更、またはエンドポイント全体に関するカスタム ランタイム機能拡張の挿入を行う DispatchRuntime オブジェクトを取得するために使用します。 DispatchRuntime プロパティからは、エンドポイントの System.ServiceModel.Dispatcher.DispatchOperation コレクションに移動することもできます。

適用対象