Compartilhar via


WSTrustChannelFactory.CreateTrustChannel Método

Definição

Cria um objeto WSTrustChannel usando os parâmetros que refletem a configuração desta fábrica.

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

Parâmetros

innerChannel
IWSTrustChannelContract

O canal criado pela classe base capaz de enviar e receber mensagens.

trustVersion
TrustVersion

A versão do WS-Trust que deve ser usada.

context
WSTrustSerializationContext

O objeto WSTrustSerializationContext que deve ser usado para serializar mensagens WS-Trust.

requestSerializer
WSTrustRequestSerializer

O objeto WSTrustRequestSerializer que deve ser usado para serializar mensagens de solicitação WS-Trust.

responseSerializer
WSTrustResponseSerializer

O objeto WSTrustResponseSerializer que deve ser usado para serializar mensagens de resposta WS-Trust.

Retornos

WSTrustChannel

Um WSTrustChannel que representa o novo canal.

Aplica-se a