ICommunicationClientFactory<TCommunicationClient> Interface
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.
Defines the interface that must be implemented to provide a factory for communication clients to talk to a service fabric service.
public interface ICommunicationClientFactory<TCommunicationClient> where TCommunicationClient : ICommunicationClient
type ICommunicationClientFactory<'CommunicationClient (requires 'CommunicationClient :> ICommunicationClient)> = interface
Public Interface ICommunicationClientFactory(Of TCommunicationClient)
Type Parameters
- TCommunicationClient
Type of communication client
- Derived
Methods
GetClientAsync(ResolvedServicePartition, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) |
Re-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" ...}} |
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" ...}} |
ReportOperationExceptionAsync(TCommunicationClient, ExceptionInformation, OperationRetrySettings, CancellationToken) |
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service |
Events
ClientConnected |
Event handler that is fired when the Communication client connects to the service endpoint. |
ClientDisconnected |
Event handler that is fired when the Communication client disconnects from the service endpoint. |