WcfCommunicationClientFactory<TServiceContract> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An ICommunicationClientFactory<TCommunicationClient> that uses Windows Communication Foundation to create WcfCommunicationClient<TServiceContract> to communicate with stateless and stateful services that are using WcfCommunicationListener<TServiceContract>.
public class WcfCommunicationClientFactory<TServiceContract> : Microsoft.ServiceFabric.Services.Communication.Client.CommunicationClientFactoryBase<Microsoft.ServiceFabric.Services.Communication.Wcf.Client.WcfCommunicationClient<TServiceContract>> where TServiceContract : class
type WcfCommunicationClientFactory<'ServiceContract (requires 'ServiceContract : null)> = class
inherit CommunicationClientFactoryBase<WcfCommunicationClient<'ServiceContract>>
Public Class WcfCommunicationClientFactory(Of TServiceContract)
Inherits CommunicationClientFactoryBase(Of WcfCommunicationClient(Of TServiceContract))
Type Parameters
- TServiceContract
WCF based service contract
- Inheritance
-
CommunicationClientFactoryBase<WcfCommunicationClient<TServiceContract>>WcfCommunicationClientFactory<TServiceContract>
Constructors
Properties
ExceptionHandlers |
Gets the custom exception handlers for handling exceptions on the client to service communication channel. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ServiceResolver |
Gets the ServicePartitionResolver used by the client factory for resolving the service endpoint. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
TraceId |
Gets the diagnostics trace identifier for this component. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
Methods
AbortClient(TCommunicationClient) |
Aborts the given client (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
AbortClient(WcfCommunicationClient<TServiceContract>) |
Aborts the given client |
CreateClientAsync(String, CancellationToken) |
Creates a communication client for the given endpoint address. |
CreateWcfCommunicationClient(TServiceContract) |
Creates WCF communication clients to communicate over the given channel. |
Dispose() |
Dispose the managed/unmanaged resouces. Dispose Method is being added rather than making it IDisposable so that it doesn't change type information and wont be a breaking change. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
GetClientAsync(ResolvedServicePartition, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) |
Gets or Creates the CommunicationClient for the specified listener name by resolving based on the given previousRsp. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
GetClientAsync(Uri, ServicePartitionKey, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) |
Resolves a partition of the specified service containing one or more communication listeners and returns a client to communicate to the endpoint corresponding to the given listenerName. The endpoint of the service is of the form - {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}} (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
OpenClient(TCommunicationClient, CancellationToken) |
Opens the Communictaion Client (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ReportOperationExceptionAsync(TCommunicationClient, ExceptionInformation, OperationRetrySettings, CancellationToken) |
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ValidateClient(String, TCommunicationClient) |
Returns true if the client is still valid and connected to the endpoint specified in the parameter. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ValidateClient(String, WcfCommunicationClient<TServiceContract>) |
Returns true if the client is still valid and connected to the endpoint specified in the parameter. |
ValidateClient(TCommunicationClient) |
Returns true if the client is still valid. Connection oriented transports can use this method to indicate that the client is no longer connected to the service. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ValidateClient(WcfCommunicationClient<TServiceContract>) |
Returns true if the client is still valid. Connection oriented transports can use this method to indicate that the client is no longer connected to the service. |
Events
ClientConnected |
Event handler that is fired when the Communication client connects to the service endpoint. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
ClientDisconnected |
Event handler that is fired when the Communication client disconnects from the service endpoint. (Inherited from CommunicationClientFactoryBase<TCommunicationClient>) |
Applies to
Azure SDK for .NET