ChannelFactory<TChannel>.CreateChannelWithIssuedToken Method

Definition

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

Overloads

CreateChannelWithIssuedToken(SecurityToken)

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

CreateChannelWithIssuedToken(SecurityToken, EndpointAddress)

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

CreateChannelWithIssuedToken(SecurityToken, EndpointAddress, Uri)

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

CreateChannelWithIssuedToken(SecurityToken)

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

C#
public TChannel CreateChannelWithIssuedToken(System.IdentityModel.Tokens.SecurityToken issuedToken);

Parameters

issuedToken
SecurityToken

The issued security token.

Returns

TChannel

The created channel factory.

Applies to

.NET Framework 4.8.1 and other versions
Product 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

CreateChannelWithIssuedToken(SecurityToken, EndpointAddress)

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

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

Parameters

issuedToken
SecurityToken

The issued 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 and other versions
Product 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

CreateChannelWithIssuedToken(SecurityToken, EndpointAddress, Uri)

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

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

Parameters

issuedToken
SecurityToken

The issued 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 and other versions
Product 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