WcfServiceRemotingClientFactory Class

Definition

An IServiceRemotingClientFactory that uses Windows Communication Foundation to create IServiceRemotingClient to communicate with stateless and stateful services over interfaces that are remoted via WcfServiceRemotingListener.

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

Constructors

WcfServiceRemotingClientFactory(Binding, IServiceRemotingCallbackClient, IEnumerable<IExceptionHandler>, IServicePartitionResolver, String, Func<Binding,IEnumerable<IExceptionHandler>,IServicePartitionResolver,String,IServiceRemotingCallbackContract,WcfCommunicationClientFactory<IServiceRemotingContract>>)

Constructs a WCF based service remoting client factory.

Events

ClientConnected

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

ClientDisconnected

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

Explicit Interface Implementations

ICommunicationClientFactory<IServiceRemotingClient>.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" ...}}

ICommunicationClientFactory<IServiceRemotingClient>.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" ...}}

ICommunicationClientFactory<IServiceRemotingClient>.ReportOperationExceptionAsync(IServiceRemotingClient, ExceptionInformation, OperationRetrySettings, CancellationToken)

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

Applies to