ServiceProxyFactory Constructors

Definition

Overloads

ServiceProxyFactory(OperationRetrySettings)

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

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

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

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.

public ServiceProxyFactory (Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default);
new Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory : Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings -> Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory
Public Sub New (Optional retrySettings As OperationRetrySettings = Nothing)

Parameters

retrySettings
OperationRetrySettings

The settings for retrying the failed operations.

Applies to

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

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

public ServiceProxyFactory (Func<Microsoft.ServiceFabric.Services.Remoting.V1.IServiceRemotingCallbackClient,Microsoft.ServiceFabric.Services.Remoting.V1.Client.IServiceRemotingClientFactory> createServiceRemotingClientFactory, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default, Action<Microsoft.ServiceFabric.Services.Remoting.V1.Client.IServiceRemotingClientFactory> disposeFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory : Func<Microsoft.ServiceFabric.Services.Remoting.V1.IServiceRemotingCallbackClient, Microsoft.ServiceFabric.Services.Remoting.V1.Client.IServiceRemotingClientFactory> * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * Action<Microsoft.ServiceFabric.Services.Remoting.V1.Client.IServiceRemotingClientFactory> -> Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory
Public Sub New (createServiceRemotingClientFactory As Func(Of IServiceRemotingCallbackClient, IServiceRemotingClientFactory), Optional retrySettings As OperationRetrySettings = Nothing, Optional disposeFactory As Action(Of IServiceRemotingClientFactory) = Nothing)

Parameters

createServiceRemotingClientFactory
System.Func<IServiceRemotingCallbackClient,IServiceRemotingClientFactory>

Specifies the factory method that creates the remoting client factory. The remoting client factory got from this method is cached in the ServiceProxyFactory.

retrySettings
OperationRetrySettings

Specifies the retry policy to use on exceptions seen when using the proxies created by this factory

disposeFactory
System.Action<IServiceRemotingClientFactory>

Specifies the method that disposes clientFactory resources.

Applies to

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

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

public ServiceProxyFactory (Func<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler,Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> createServiceRemotingClientFactory, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default, Action<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> disposeFactory = default);
new Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory : Func<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * Action<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClientFactory> -> Microsoft.ServiceFabric.Services.Remoting.Client.ServiceProxyFactory
Public Sub New (createServiceRemotingClientFactory As Func(Of IServiceRemotingCallbackMessageHandler, IServiceRemotingClientFactory), Optional retrySettings As OperationRetrySettings = Nothing, Optional disposeFactory As Action(Of IServiceRemotingClientFactory) = Nothing)

Parameters

createServiceRemotingClientFactory
System.Func<IServiceRemotingCallbackMessageHandler,IServiceRemotingClientFactory>

Specifies the factory method that creates the remoting client factory. The remoting client factory got from this method is cached in the ServiceProxyFactory.

retrySettings
OperationRetrySettings

Specifies the retry policy to use on exceptions seen when using the proxies created by this factory

disposeFactory
System.Action<IServiceRemotingClientFactory>

Specifies the method that disposes clientFactory resources.

Applies to