Επεξεργασία

Κοινή χρήση μέσω


WSTrustChannelFactory.CreateTrustChannel Method

Definition

Creates a WSTrustChannel object using parameters that reflect the configuration of this factory.

protected:
 virtual System::ServiceModel::Security::WSTrustChannel ^ CreateTrustChannel(System::ServiceModel::Security::IWSTrustChannelContract ^ innerChannel, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer);
protected virtual System.ServiceModel.Security.WSTrustChannel CreateTrustChannel (System.ServiceModel.Security.IWSTrustChannelContract innerChannel, System.ServiceModel.Security.TrustVersion trustVersion, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer);
abstract member CreateTrustChannel : System.ServiceModel.Security.IWSTrustChannelContract * System.ServiceModel.Security.TrustVersion * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer -> System.ServiceModel.Security.WSTrustChannel
override this.CreateTrustChannel : System.ServiceModel.Security.IWSTrustChannelContract * System.ServiceModel.Security.TrustVersion * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer -> System.ServiceModel.Security.WSTrustChannel
Protected Overridable Function CreateTrustChannel (innerChannel As IWSTrustChannelContract, trustVersion As TrustVersion, context As WSTrustSerializationContext, requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer) As WSTrustChannel

Parameters

innerChannel
IWSTrustChannelContract

The channel created by the base class capable of sending and receiving messages.

trustVersion
TrustVersion

The version of WS-Trust that should be used.

context
WSTrustSerializationContext

The WSTrustSerializationContext object that should be used to serialize WS-Trust messages.

requestSerializer
WSTrustRequestSerializer

The WSTrustRequestSerializer object that should be used to serialize WS-Trust request messages.

responseSerializer
WSTrustResponseSerializer

The WSTrustResponseSerializer object that should be used to serialize WS-Trust response messages.

Returns

A WSTrustChannel that represents the new channel.

Applies to