次の方法で共有


IServiceConfiguration<TService>.CreateChannelFactory Method

Definition

Overloads

CreateChannelFactory(ClientCredentials)

Creates a WCF channel factory that supports passing the client credentials, regardless of whether in federation authentication mode or not.

CreateChannelFactory(TokenServiceCredentialType)

For internal use only.

CreateChannelFactory(ClientAuthenticationType)

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

CreateChannelFactory()

Creates a client factory that uses the default Kerberos credentials.

CreateChannelFactory(ClientCredentials)

Creates a WCF channel factory that supports passing the client credentials, regardless of whether in federation authentication mode or not.

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 client authentication credentials.

Returns

ChannelFactory<TService>

The channel factory.

Remarks

Windows and UserName credentials are currently supported.

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(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 channel factory.

Remarks

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

channelFactory.CreateChannelWithIssuedToken(SecurityToken)

Applies to

CreateChannelFactory()

Creates a client 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 channel factory.

Applies to