WSTrustChannel 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 WSTrustChannel 类的新实例。
public:
WSTrustChannel(System::ServiceModel::Security::WSTrustChannelFactory ^ factory, System::ServiceModel::Security::IWSTrustChannelContract ^ inner, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer);
public WSTrustChannel (System.ServiceModel.Security.WSTrustChannelFactory factory, System.ServiceModel.Security.IWSTrustChannelContract inner, System.ServiceModel.Security.TrustVersion trustVersion, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer);
new System.ServiceModel.Security.WSTrustChannel : System.ServiceModel.Security.WSTrustChannelFactory * 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
Public Sub New (factory As WSTrustChannelFactory, inner As IWSTrustChannelContract, trustVersion As TrustVersion, context As WSTrustSerializationContext, requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer)
参数
- factory
- WSTrustChannelFactory
生成通道的 WSTrustChannelFactory。
- inner
- IWSTrustChannelContract
通道将用来发送和接收 IWSTrustChannelContract 对象的 Message。
- trustVersion
- TrustVersion
通道用于序列化 Message 对象将使用 ws-trust 的版本。
- context
- WSTrustSerializationContext
通道将用来序列化 WS-Trust 消息的 WSTrustSerializationContext。
- requestSerializer
- WSTrustRequestSerializer
通道将用来序列化 WS-Trust 请求消息的 WSTrustRequestSerializer。
- responseSerializer
- WSTrustResponseSerializer
通道将用来序列化渠道为序列化 WS-Trust 响应消息的 WSTrustResponseSerializer。