Share via


ServicePartitionResolver Constructors

Definition

Overloads

ServicePartitionResolver(CreateFabricClientDelegate)

Initializes a new instance of the ServicePartitionResolver class. The constructor invokes the given delegate to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

ServicePartitionResolver(String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses given connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

ServicePartitionResolver(CreateFabricClientDelegate, CreateFabricClientDelegate)

Initializes a new instance of the ServicePartitionResolver class.

ServicePartitionResolver(FabricClientSettings, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses given settings and connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

ServicePartitionResolver(SecurityCredentials, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses the given security credentials and the connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

ServicePartitionResolver(SecurityCredentials, FabricClientSettings, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses the given security credentials, settings and the connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

ServicePartitionResolver(CreateFabricClientDelegate)

Initializes a new instance of the ServicePartitionResolver class. The constructor invokes the given delegate to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

public ServicePartitionResolver (Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate createFabricClient);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (createFabricClient As CreateFabricClientDelegate)

Parameters

createFabricClient
CreateFabricClientDelegate

Delegate to create fabric client.

Applies to

ServicePartitionResolver(String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses given connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

public ServicePartitionResolver (params string[] connectionEndpoints);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : string[] -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (ParamArray connectionEndpoints As String())

Parameters

connectionEndpoints
String[]

Array of management endpoints of the cluster.

Applies to

ServicePartitionResolver(CreateFabricClientDelegate, CreateFabricClientDelegate)

Initializes a new instance of the ServicePartitionResolver class.

public ServicePartitionResolver (Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate createFabricClient, Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate recreateFabricClient);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate * Microsoft.ServiceFabric.Services.Client.CreateFabricClientDelegate -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (createFabricClient As CreateFabricClientDelegate, recreateFabricClient As CreateFabricClientDelegate)

Parameters

createFabricClient
CreateFabricClientDelegate

Delegate to create the fabric client.

recreateFabricClient
CreateFabricClientDelegate

Delegate to re-create the fabric client.

Remarks

The first delegate is used to create FabricClient.. During partition resolution if FabricClient object gets disposed and second delegate is provided, it uses the second delegate to create the FabricClient again. The second delegate provides a way to specify an alternate way to get or create FabricClient if FabricClient created with first delegate get disposed.

Applies to

ServicePartitionResolver(FabricClientSettings, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses given settings and connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

public ServicePartitionResolver (System.Fabric.FabricClientSettings settings, params string[] connectionEndpoints);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : System.Fabric.FabricClientSettings * string[] -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (settings As FabricClientSettings, ParamArray connectionEndpoints As String())

Parameters

settings
FabricClientSettings

Fabric client Settings.

connectionEndpoints
String[]

Array of management endpoints of the cluster.

Applies to

ServicePartitionResolver(SecurityCredentials, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses the given security credentials and the connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

public ServicePartitionResolver (System.Fabric.SecurityCredentials credential, params string[] connectionEndpoints);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : System.Fabric.SecurityCredentials * string[] -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (credential As SecurityCredentials, ParamArray connectionEndpoints As String())

Parameters

credential
SecurityCredentials

Security credentials for the fabric client.

connectionEndpoints
String[]

Array of management endpoints of the cluster.

Applies to

ServicePartitionResolver(SecurityCredentials, FabricClientSettings, String[])

Initializes a new instance of the ServicePartitionResolver class. The constructor uses the given security credentials, settings and the connectionEndpoints to create an instance of FabricClient that is used for connecting to a Service Fabric cluster and perform service resolution.

public ServicePartitionResolver (System.Fabric.SecurityCredentials credential, System.Fabric.FabricClientSettings settings, params string[] connectionEndpoints);
new Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver : System.Fabric.SecurityCredentials * System.Fabric.FabricClientSettings * string[] -> Microsoft.ServiceFabric.Services.Client.ServicePartitionResolver
Public Sub New (credential As SecurityCredentials, settings As FabricClientSettings, ParamArray connectionEndpoints As String())

Parameters

credential
SecurityCredentials

Security credentials for the fabric client.

settings
FabricClientSettings

Fabric client Settings.

connectionEndpoints
String[]

Array of management endpoints of the cluster.

Applies to