WSTrustChannelFactory.CreateTrustChannel 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用反映此工厂的配置的参数创建 WSTrustChannel 对象。
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
参数
- innerChannel
- IWSTrustChannelContract
由能够发送和接收消息的基类创建的通道。
- trustVersion
- TrustVersion
应使用的 WS-Trust 版本。
- context
- WSTrustSerializationContext
应该用于序列化 WS-Trust 消息的 WSTrustSerializationContext 对象。
- requestSerializer
- WSTrustRequestSerializer
WSTrustRequestSerializer应用于序列化请求消息WS-Trust对象。
- responseSerializer
- WSTrustResponseSerializer
应该用于序列化 WS-Trust 响应消息的 WSTrustResponseSerializer 对象。
返回
表示新通道的 WSTrustChannel。