WcfCommunicationClientFactory<TServiceContract>.CreateClientAsync(String, CancellationToken) Method

Definition

Creates a communication client for the given endpoint address.

protected override System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Communication.Wcf.Client.WcfCommunicationClient<TServiceContract>> CreateClientAsync (string endpoint, System.Threading.CancellationToken cancellationToken);
override this.CreateClientAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Communication.Wcf.Client.WcfCommunicationClient<'ServiceContract>>

Parameters

endpoint
System.String

Endpoint address where the service is listening

cancellationToken
System.Threading.CancellationToken

Cancellation token

Returns

System.Threading.Tasks.Task<WcfCommunicationClient<TServiceContract>>

The communication client that was created

Applies to