Delen via


FabricClient.ServiceManagementClient.RegisterServicePartitionResolutionChangeHandler Method

Definition

Overloads

RegisterServicePartitionResolutionChangeHandler(Uri, String, ServicePartitionResolutionChangeHandler)
Obsolete.

This API is deprecated, use RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) instead.

RegisterServicePartitionResolutionChangeHandler(Uri, ServicePartitionResolutionChangeHandler)
Obsolete.

This API is deprecated, use RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) instead.

RegisterServicePartitionResolutionChangeHandler(Uri, Int64, ServicePartitionResolutionChangeHandler)
Obsolete.

This API is deprecated, use RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) instead.

RegisterServicePartitionResolutionChangeHandler(Uri, String, ServicePartitionResolutionChangeHandler)

Caution

This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.

[System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)]
public long RegisterServicePartitionResolutionChangeHandler (Uri serviceName, string partitionKey, System.Fabric.ServicePartitionResolutionChangeHandler callback);
[<System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)>]
member this.RegisterServicePartitionResolutionChangeHandler : Uri * string * System.Fabric.ServicePartitionResolutionChangeHandler -> int64
Public Function RegisterServicePartitionResolutionChangeHandler (serviceName As Uri, partitionKey As String, callback As ServicePartitionResolutionChangeHandler) As Long

Parameters

serviceName
Uri

The Service Fabric Name of the service.

partitionKey
String

The partition key for the service partition.

callback
ServicePartitionResolutionChangeHandler

The function that will be called when a notification arrives.

Returns

The handler to be raised when the accessibility information of a service partition changes.

Attributes

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

If serviceName or callback are null.

If partitionKey is null or empty.

Remarks

Notification will include changes on partition’s endpoints or exceptions that occurred while the information was being updated. This overload is used for Named partitioned service instances. Returned Int64 is the callback handle identifier for the registration.

Notifications is a mechanism that delivers notifications to user’s code each time there is an service address change or an address resolution error related to a service partition the code has raised interest for. This way instead of resolving every time the current ResolvedServicePartition becomes stale, program registers for updates.

Applies to

RegisterServicePartitionResolutionChangeHandler(Uri, ServicePartitionResolutionChangeHandler)

Caution

This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.

[System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)]
public long RegisterServicePartitionResolutionChangeHandler (Uri serviceName, System.Fabric.ServicePartitionResolutionChangeHandler callback);
[<System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)>]
member this.RegisterServicePartitionResolutionChangeHandler : Uri * System.Fabric.ServicePartitionResolutionChangeHandler -> int64
Public Function RegisterServicePartitionResolutionChangeHandler (serviceName As Uri, callback As ServicePartitionResolutionChangeHandler) As Long

Parameters

serviceName
Uri

The Service Fabric Name of the service.

callback
ServicePartitionResolutionChangeHandler

The function that will be called when a notification arrives.

Returns

The handler to be raised when the accessibility information of a service partition changes.

Attributes

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

If serviceName or callback are null.

Remarks

Notification will include changes on partition’s endpoints or exceptions that occurred while the information was being updated. This overload is used for Singleton partitioned service instances. Returned Int64 is the callback handle identifier for the registration.

Notifications is a mechanism that delivers notifications to user’s code each time there is an service address change or an address resolution error related to a service partition the code has raised interest for. This way instead of resolving every time the current ResolvedServicePartition becomes stale, program registers for updates.

Applies to

RegisterServicePartitionResolutionChangeHandler(Uri, Int64, ServicePartitionResolutionChangeHandler)

Caution

This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.

[System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)]
public long RegisterServicePartitionResolutionChangeHandler (Uri serviceName, long partitionKey, System.Fabric.ServicePartitionResolutionChangeHandler callback);
[<System.Obsolete("This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.", false)>]
member this.RegisterServicePartitionResolutionChangeHandler : Uri * int64 * System.Fabric.ServicePartitionResolutionChangeHandler -> int64
Public Function RegisterServicePartitionResolutionChangeHandler (serviceName As Uri, partitionKey As Long, callback As ServicePartitionResolutionChangeHandler) As Long

Parameters

serviceName
Uri

The Service Fabric Name of the service.

partitionKey
Int64

The partition key for the service partition.

callback
ServicePartitionResolutionChangeHandler

The function that will be called when a notification arrives.

Returns

The handler to be raised when the accessibility information of a service partition changes.

Attributes

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

If serviceName or callback are null.

Remarks

Notification will include changes on partition’s endpoints or exceptions that occurred while the information was being updated. This overload is used for UniformInt64Range partitioned service instances. Returned Int64 is the callback handle identifier for the registration.

Notifications is a mechanism that delivers notifications to user’s code each time there is an service address change or an address resolution error related to a service partition the code has raised interest for. This way instead of resolving every time the current ResolvedServicePartition becomes stale, program registers for updates.

Applies to