IServiceConfiguration<TService>.CreateChannelFactory Method (ClientAuthenticationType)
Applies To: Dynamics CRM 2015
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)
Syntax
ChannelFactory<TService> CreateChannelFactory(
ClientAuthenticationType clientAuthenticationType
)
ChannelFactory<TService>^ CreateChannelFactory(
ClientAuthenticationType clientAuthenticationType
)
abstract CreateChannelFactory :
clientAuthenticationType:ClientAuthenticationType -> ChannelFactory<'TService>
Function CreateChannelFactory (
clientAuthenticationType As ClientAuthenticationType
) As ChannelFactory(Of TService)
Parameters
clientAuthenticationType
Type: Microsoft.Xrm.Sdk.Client.ClientAuthenticationTypeType: ClientAuthenticationType. Specifies the type of authentication.
Return Value
Type: System.ServiceModel.ChannelFactory<TService>
Type: ChannelFactory<TService>
The channel factory.
Remarks
When SecurityToken is specified, you can later call the following method when creating a channel.
channelFactory.CreateChannelWithIssuedToken(SecurityToken)
See Also
CreateChannelFactory Overload
IServiceConfiguration<TService> Interface
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright