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.

C#
public TChannel CreateChannelWithOnBehalfOfToken(System.IdentityModel.Tokens.SecurityToken onBehalfOf, System.ServiceModel.EndpointAddress address, Uri via);

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

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateChannelWithOnBehalfOfToken(SecurityToken)

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

C#
public TChannel CreateChannelWithOnBehalfOfToken(System.IdentityModel.Tokens.SecurityToken onBehalfOf);

Parameters

onBehalfOf
SecurityToken

The security token.

Returns

TChannel

The created channel factory.

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public TChannel CreateChannelWithOnBehalfOfToken(System.IdentityModel.Tokens.SecurityToken onBehalfOf, System.ServiceModel.EndpointAddress address);

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

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1