IServiceConfiguration<TService>.CreateChannelFactory Method (ClientAuthenticationType)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Creates a WCF channel factory with a specified type of authentication.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

ChannelFactory<TService> CreateChannelFactory(
	ClientAuthenticationType clientAuthenticationType
)

Parameters

clientAuthenticationType
Type: Microsoft.Xrm.Sdk.Client.ClientAuthenticationType

Type: ClientAuthenticationType. Specifies the type of authentication.

Return Value

Type: System.ServiceModel.ChannelFactory<TService>

Type: ChannelFactory<TService>
The channel factory.

When SecurityToken is specified, you can later call the following method when creating a channel.

channelFactory.CreateChannelWithIssuedToken(SecurityToken)

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: