FabricClient.ServiceManagementClient.RegisterServicePartitionResolutionChangeHandler メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
RegisterServicePartitionResolutionChangeHandler(Uri, String, ServicePartitionResolutionChangeHandler)
注意事項
This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.
この API は非推奨です。代わりに を使用 RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) してください。
[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
パラメーター
- serviceName
- Uri
サービスの Service Fabric 名。
- partitionKey
- String
サービス パーティションのパーティション キー。
通知が到着したときに呼び出される関数。
戻り値
サービス パーティションのアクセシビリティ情報が変更されたときに発生するハンドラー。
- 属性
例外
オブジェクトは FabricClient 閉じた状態です。 使用しているオブジェクトを FabricClient 破棄し、新しい FabricClient オブジェクトをインスタンス化します。
または callback
が null の場合serviceName
。
が null または空の場合 partitionKey
。
注釈
通知には、情報の更新中に発生したパーティションのエンドポイントまたは例外に対する変更が含まれます。 このオーバーロードは、名前付きパーティション分割されたサービス インスタンスに使用されます。 返される Int64 は、登録のコールバック ハンドル識別子です。
通知は、コードが関心を集めたサービス パーティションに関連するサービス アドレス変更またはアドレス解決エラーが発生するたびに、ユーザーのコードに通知を配信するメカニズムです。 これにより、現在 ResolvedServicePartition のが古くなるたびに解決するのではなく、プログラムが更新プログラムに登録されます。
適用対象
RegisterServicePartitionResolutionChangeHandler(Uri, ServicePartitionResolutionChangeHandler)
注意事項
This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.
この API は非推奨です。代わりに を使用 RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) してください。
[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
パラメーター
- serviceName
- Uri
サービスの Service Fabric 名。
通知が到着したときに呼び出される関数。
戻り値
サービス パーティションのアクセシビリティ情報が変更されたときに発生するハンドラー。
- 属性
例外
オブジェクトは FabricClient 閉じた状態です。 使用しているオブジェクトを FabricClient 破棄し、新しい FabricClient オブジェクトをインスタンス化します。
または callback
が null の場合serviceName
。
注釈
通知には、情報の更新中に発生したパーティションのエンドポイントまたは例外に対する変更が含まれます。 このオーバーロードは、Singleton パーティション分割されたサービス インスタンスに使用されます。 返される Int64 は、登録のコールバック ハンドル識別子です。
通知は、コードが関心を集めたサービス パーティションに関連するサービス アドレス変更またはアドレス解決エラーが発生するたびに、ユーザーのコードに通知を配信するメカニズムです。 これにより、現在 ResolvedServicePartition のが古くなるたびに解決するのではなく、プログラムが更新プログラムに登録されます。
適用対象
RegisterServicePartitionResolutionChangeHandler(Uri, Int64, ServicePartitionResolutionChangeHandler)
注意事項
This API is obsolete. Use RegisterServiceNotificationFilterAsync instead.
この API は非推奨です。代わりに を使用 RegisterServiceNotificationFilterAsync(ServiceNotificationFilterDescription) してください。
[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
パラメーター
- serviceName
- Uri
サービスの Service Fabric 名。
- partitionKey
- Int64
サービス パーティションのパーティション キー。
通知が到着したときに呼び出される関数。
戻り値
サービス パーティションのアクセシビリティ情報が変更されたときに発生するハンドラー。
- 属性
例外
オブジェクトは FabricClient 閉じた状態です。 使用しているオブジェクトを FabricClient 破棄し、新しい FabricClient オブジェクトをインスタンス化します。
または callback
が null の場合serviceName
。
注釈
通知には、情報の更新中に発生したパーティションのエンドポイントまたは例外に対する変更が含まれます。 このオーバーロードは、UniformInt64Range パーティション分割されたサービス インスタンスに使用されます。 返される Int64 は、登録のコールバック ハンドル識別子です。
通知は、コードが関心を集めたサービス パーティションに関連するサービス アドレス変更またはアドレス解決エラーが発生するたびに、ユーザーのコードに通知を配信するメカニズムです。 これにより、現在 ResolvedServicePartition のが古くなるたびに解決するのではなく、プログラムが更新プログラムに登録されます。
適用対象
Azure SDK for .NET