แก้ไข

แชร์ผ่าน


ChannelFactory<TChannel>.CreateChannelWithActAsToken Method

Definition

Creates a channel that is used to send messages to a service with an act as security token.

Overloads

CreateChannelWithActAsToken(SecurityToken)

Creates a channel that is used to send messages to a service with an act as security token.

CreateChannelWithActAsToken(SecurityToken, EndpointAddress)

Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address.

CreateChannelWithActAsToken(SecurityToken, EndpointAddress, Uri)

Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address through a specified transport address.

CreateChannelWithActAsToken(SecurityToken)

Creates a channel that is used to send messages to a service with an act as security token.

public:
 TChannel CreateChannelWithActAsToken(System::IdentityModel::Tokens::SecurityToken ^ actAsToken);
public TChannel CreateChannelWithActAsToken (System.IdentityModel.Tokens.SecurityToken actAsToken);
member this.CreateChannelWithActAsToken : System.IdentityModel.Tokens.SecurityToken -> 'Channel
Public Function CreateChannelWithActAsToken (actAsToken As SecurityToken) As TChannel

Parameters

actAsToken
SecurityToken

The security token.

Returns

TChannel

The created channel factory.

Applies to

CreateChannelWithActAsToken(SecurityToken, EndpointAddress)

Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address.

public:
 TChannel CreateChannelWithActAsToken(System::IdentityModel::Tokens::SecurityToken ^ actAsToken, System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannelWithActAsToken (System.IdentityModel.Tokens.SecurityToken actAsToken, System.ServiceModel.EndpointAddress address);
member this.CreateChannelWithActAsToken : System.IdentityModel.Tokens.SecurityToken * System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannelWithActAsToken (actAsToken As SecurityToken, address As EndpointAddress) As TChannel

Parameters

actAsToken
SecurityToken

The security token.

address
EndpointAddress

The endpoint address that provides the location of the service.

Returns

TChannel

The created channel factory.

Applies to

CreateChannelWithActAsToken(SecurityToken, EndpointAddress, Uri)

Creates a channel that is used to send messages to a service with an act as security token at a specific endpoint address through a specified transport address.

public:
 TChannel CreateChannelWithActAsToken(System::IdentityModel::Tokens::SecurityToken ^ actAsToken, System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public TChannel CreateChannelWithActAsToken (System.IdentityModel.Tokens.SecurityToken actAsToken, System.ServiceModel.EndpointAddress address, Uri via);
member this.CreateChannelWithActAsToken : System.IdentityModel.Tokens.SecurityToken * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Function CreateChannelWithActAsToken (actAsToken As SecurityToken, address As EndpointAddress, via As Uri) As TChannel

Parameters

actAsToken
SecurityToken

The security token.

address
EndpointAddress

The endpoint address that provides the location of the service.

via
Uri

The transport address to which the channel sends messages.

Returns

TChannel

The created channel factory.

Applies to