Uredi

Deli z drugimi prek


ChannelFactory<TChannel>.CreateChannelWithOnBehalfOfToken Method

Definition

Creates a channel that is used to send messages to a service with an on behalf of security token.

Overloads

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)

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

CreateChannelWithOnBehalfOfToken(SecurityToken)

Creates a channel that is used to send messages to a service with an on behalf of security token.

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)

Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address.

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)

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

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

Parameters

onBehalfOf
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

CreateChannelWithOnBehalfOfToken(SecurityToken)

Creates a channel that is used to send messages to a service with an on behalf of security token.

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

Parameters

onBehalfOf
SecurityToken

The security token.

Returns

TChannel

The created channel factory.

Applies to

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)

Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address.

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

Parameters

onBehalfOf
SecurityToken

The security token.

address
EndpointAddress

The endpoint address that provides the location of the service.

Returns

TChannel

The created channel factory.

Applies to