Share via


ServiceProxyFactory Class

Definition

Specifies the factory that creates proxies for remote communication to the specified service.

public class ServiceProxyFactory : Microsoft.ServiceFabric.Services.Remoting.Client.IServiceProxyFactory
type ServiceProxyFactory = class
    interface IServiceProxyFactory
Public Class ServiceProxyFactory
Implements IServiceProxyFactory
Inheritance
ServiceProxyFactory
Implements

Constructors

ServiceProxyFactory(Func<IServiceRemotingCallbackMessageHandler, IServiceRemotingClientFactory>, OperationRetrySettings, Action<IServiceRemotingClientFactory>)

Initializes a new instance of the ServiceProxyFactory class with the specified V2 remoting factory and retrysettings.

ServiceProxyFactory(OperationRetrySettings)

Initializes a new instance of the ServiceProxyFactory class with the specified retrysettings and default remotingClientFactory.

Methods

CreateNonIServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements.

CreateServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements.

Dispose()

Releases managed/unmanaged resources. Dispose Method is being added rather than making it IDisposable so that it doesn't change type information and wont be a breaking change.

Applies to