Partager via


IServiceManagement<TService>.CreateChannelFactory Method

Definition

Overloads

CreateChannelFactory()

Creates a WCF channel factory that uses the default Kerberos credentials.

CreateChannelFactory(ClientAuthenticationType)

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

CreateChannelFactory(TokenServiceCredentialType)

For internal use only.

CreateChannelFactory(ClientCredentials)

Creates a WCF channel factory using specified client credentials.

CreateChannelFactory()

Creates a WCF channel factory that uses the default Kerberos credentials.

public:
 System::ServiceModel::ChannelFactory<TService> ^ CreateChannelFactory();
public System.ServiceModel.ChannelFactory<TService> CreateChannelFactory ();
abstract member CreateChannelFactory : unit -> System.ServiceModel.ChannelFactory<'Service>
Public Function CreateChannelFactory () As ChannelFactory(Of TService)

Returns

ChannelFactory<TService>

The WCF channel factory where TService: IDiscoveryService or IOrganizationService.

Applies to

CreateChannelFactory(ClientAuthenticationType)

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

public:
 System::ServiceModel::ChannelFactory<TService> ^ CreateChannelFactory(Microsoft::Xrm::Sdk::Client::ClientAuthenticationType clientAuthenticationType);
public System.ServiceModel.ChannelFactory<TService> CreateChannelFactory (Microsoft.Xrm.Sdk.Client.ClientAuthenticationType clientAuthenticationType);
abstract member CreateChannelFactory : Microsoft.Xrm.Sdk.Client.ClientAuthenticationType -> System.ServiceModel.ChannelFactory<'Service>
Public Function CreateChannelFactory (clientAuthenticationType As ClientAuthenticationType) As ChannelFactory(Of TService)

Parameters

clientAuthenticationType
ClientAuthenticationType

Specifies the type of authentication.

Returns

ChannelFactory<TService>

The WCF channel factory where TService: IDiscoveryService or IOrganizationService.

Remarks

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

channelFactory.CreateChannelWithIssuedToken(SecurityToken)

Applies to

CreateChannelFactory(TokenServiceCredentialType)

For internal use only.

public:
 System::ServiceModel::ChannelFactory<TService> ^ CreateChannelFactory(Microsoft::Xrm::Sdk::Client::TokenServiceCredentialType endpointType);
public System.ServiceModel.ChannelFactory<TService> CreateChannelFactory (Microsoft.Xrm.Sdk.Client.TokenServiceCredentialType endpointType);
abstract member CreateChannelFactory : Microsoft.Xrm.Sdk.Client.TokenServiceCredentialType -> System.ServiceModel.ChannelFactory<'Service>
Public Function CreateChannelFactory (endpointType As TokenServiceCredentialType) As ChannelFactory(Of TService)

Parameters

Returns

ChannelFactory<TService>

Applies to

CreateChannelFactory(ClientCredentials)

Creates a WCF channel factory using specified client credentials.

public:
 System::ServiceModel::ChannelFactory<TService> ^ CreateChannelFactory(System::ServiceModel::Description::ClientCredentials ^ clientCredentials);
public System.ServiceModel.ChannelFactory<TService> CreateChannelFactory (System.ServiceModel.Description.ClientCredentials clientCredentials);
abstract member CreateChannelFactory : System.ServiceModel.Description.ClientCredentials -> System.ServiceModel.ChannelFactory<'Service>
Public Function CreateChannelFactory (clientCredentials As ClientCredentials) As ChannelFactory(Of TService)

Parameters

clientCredentials
ClientCredentials

Specifies the client credentials to use.

Returns

ChannelFactory<TService>

The WCF channel factory where TService: IDiscoveryService or IOrganizationService.

Applies to