共用方式為


WSTrustServiceContract.CreateDispatchContext 方法

定義

建立 DispatchContext 物件以供 DispatchRequest(DispatchContext) 方法使用。

protected:
 virtual System::ServiceModel::Security::DispatchContext ^ CreateDispatchContext(System::ServiceModel::Channels::Message ^ requestMessage, System::String ^ requestAction, System::String ^ responseAction, System::String ^ trustNamespace, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ serializationContext);
protected virtual System.ServiceModel.Security.DispatchContext CreateDispatchContext (System.ServiceModel.Channels.Message requestMessage, string requestAction, string responseAction, string trustNamespace, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext serializationContext);
abstract member CreateDispatchContext : System.ServiceModel.Channels.Message * string * string * string * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.ServiceModel.Security.DispatchContext
override this.CreateDispatchContext : System.ServiceModel.Channels.Message * string * string * string * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.ServiceModel.Security.DispatchContext
Protected Overridable Function CreateDispatchContext (requestMessage As Message, requestAction As String, responseAction As String, trustNamespace As String, requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer, serializationContext As WSTrustSerializationContext) As DispatchContext

參數

requestMessage
Message

傳入要求訊息。

requestAction
String

此要求的 SOAP 動作。

responseAction
String

此回應的預設 SOAP 動作。

trustNamespace
String

傳入要求的 WS-Trust 版本命名空間 URI。

requestSerializer
WSTrustRequestSerializer

用以將傳入的 RST 訊息還原序列化的 WSTrustRequestSerializer

responseSerializer
WSTrustResponseSerializer

用以將傳入的 RSTR 訊息還原序列化的 WSTrustResponseSerializer

serializationContext
WSTrustSerializationContext

將傳入訊息還原序列化時使用的 WSTrustSerializationContext

傳回

DispatchContext

DispatchContext 物件。

適用於