WSTrustChannelFactory::CreateTrustChannel Method (IWSTrustChannelContract^, TrustVersion^, WSTrustSerializationContext^, WSTrustRequestSerializer^, WSTrustResponseSerializer^)
Creates a WSTrustChannel object using parameters that reflect the configuration of this factory.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
protected: virtual WSTrustChannel^ CreateTrustChannel( IWSTrustChannelContract^ innerChannel, TrustVersion^ trustVersion, WSTrustSerializationContext^ context, WSTrustRequestSerializer^ requestSerializer, WSTrustResponseSerializer^ responseSerializer )
Parameters
- innerChannel
-
Type:
System.ServiceModel.Security::IWSTrustChannelContract^
The channel created by the base class capable of sending and receiving messages.
- trustVersion
-
Type:
System.ServiceModel.Security::TrustVersion^
The version of WS-Trust that should be used.
- context
-
Type:
System.IdentityModel.Protocols.WSTrust::WSTrustSerializationContext^
The WSTrustSerializationContext object that should be used to serialize WS-Trust messages.
- requestSerializer
-
Type:
System.IdentityModel.Protocols.WSTrust::WSTrustRequestSerializer^
The WSTrustRequestSerializer object that should be used to serialize WS-Trust request messages.
- responseSerializer
-
Type:
System.IdentityModel.Protocols.WSTrust::WSTrustResponseSerializer^
The WSTrustResponseSerializer object that should be used to serialize WS-Trust response messages.
Return Value
Type: System.ServiceModel.Security::WSTrustChannel^A WSTrustChannel that represents the new channel.
Available since 4.5