FabricTransportServiceRemotingClientFactory FabricTransportServiceRemotingClientFactory FabricTransportServiceRemotingClientFactory Class

Definition

An IServiceRemotingClientFactory that uses Fabric TCP transport to create IServiceRemotingClient that communicate with stateless and stateful services over interfaces that are remoted via FabricTransportServiceRemotingListener.

public class FabricTransportServiceRemotingClientFactory : Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClient>, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory
type FabricTransportServiceRemotingClientFactory = class
    interface IServiceRemotingClientFactory
    interface ICommunicationClientFactory<IServiceRemotingClient>
Public Class FabricTransportServiceRemotingClientFactory
Implements ICommunicationClientFactory(Of IServiceRemotingClient), IServiceRemotingClientFactory
Inheritance
FabricTransportServiceRemotingClientFactoryFabricTransportServiceRemotingClientFactoryFabricTransportServiceRemotingClientFactory
Derived
Implements

Constructors

FabricTransportServiceRemotingClientFactory(FabricTransportRemotingSettings, IServiceRemotingCallbackMessageHandler, IServicePartitionResolver, IEnumerable<IExceptionHandler>, String, IServiceRemotingMessageSerializationProvider) FabricTransportServiceRemotingClientFactory(FabricTransportRemotingSettings, IServiceRemotingCallbackMessageHandler, IServicePartitionResolver, IEnumerable<IExceptionHandler>, String, IServiceRemotingMessageSerializationProvider) FabricTransportServiceRemotingClientFactory(FabricTransportRemotingSettings, IServiceRemotingCallbackMessageHandler, IServicePartitionResolver, IEnumerable<IExceptionHandler>, String, IServiceRemotingMessageSerializationProvider)

Constructs a fabric transport based service remoting client factory.

Methods

GetClientAsync(ResolvedServicePartition, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) GetClientAsync(ResolvedServicePartition, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) 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) GetClientAsync(Uri, ServicePartitionKey, TargetReplicaSelector, String, OperationRetrySettings, CancellationToken) 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" ...}}

GetRemotingMessageBodyFactory() GetRemotingMessageBodyFactory() GetRemotingMessageBodyFactory()

Gets the IServiceRemotingMessageBodyFactory used to create Remoting Request Body objects.

ReportOperationExceptionAsync(IServiceRemotingClient, ExceptionInformation, OperationRetrySettings, CancellationToken) ReportOperationExceptionAsync(IServiceRemotingClient, ExceptionInformation, OperationRetrySettings, CancellationToken) ReportOperationExceptionAsync(IServiceRemotingClient, ExceptionInformation, OperationRetrySettings, CancellationToken)

Handles the exceptions that occur in the CommunicationClient when sending a message to the Service

Events

ClientConnected ClientConnected ClientConnected

Event handler that is fired when a client is connected to the service endpoint.

ClientDisconnected ClientDisconnected ClientDisconnected

Event handler that is fired when a client is disconnected from the service endpoint.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to