ServiceProxyFactory ServiceProxyFactory 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
ServiceProxyFactoryServiceProxyFactoryServiceProxyFactory
Implements

Constructors

ServiceProxyFactory(OperationRetrySettings) ServiceProxyFactory(OperationRetrySettings) ServiceProxyFactory(OperationRetrySettings)

Instantiates the ServiceProxyFactory with the specified retrysettings and default remotingClientFactory

ServiceProxyFactory(Func<IServiceRemotingCallbackClient,IServiceRemotingClientFactory>, OperationRetrySettings) ServiceProxyFactory(Func<IServiceRemotingCallbackClient,IServiceRemotingClientFactory>, OperationRetrySettings) ServiceProxyFactory(Func<IServiceRemotingCallbackClient,IServiceRemotingClientFactory>, OperationRetrySettings)

Instantiates the ServiceProxyFactory with the specified V1 remoting factory and retrysettings.

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

Instantiates the ServiceProxyFactory with the specified V2 remoting factory and retrysettings.

Methods

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

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements. Interface that is being remoted . Service Interface does not need to be inherited from IService.Uri of the Service.The Partition key that determines which service partition is responsible for handling requests from this service proxyDetermines which replica or instance of the service partition the client should connect to.This parameter is Optional if the service has a single communication listener. The endpoints from the service are of the form {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}. When the service exposes multiple endpoints, this parameter identifies which of those endpoints to use for the remoting communication.

The proxy that implement the interface that is being remoted. The returned object also implement IServiceProxy interface.
CreateServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String) CreateServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String) CreateServiceProxy<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements. Interface that is being remotedUri of the Service.The Partition key that determines which service partition is responsible for handling requests from this service proxyDetermines which replica or instance of the service partition the client should connect to.This parameter is Optional if the service has a single communication listener. The endpoints from the service are of the form {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}. When the service exposes multiple endpoints, this parameter identifies which of those endpoints to use for the remoting communication.

The proxy that implement the interface that is being remoted. The returned object also implement IServiceProxy interface.

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