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. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기