次の方法で共有


ILeaseManager.AcquireAsync(ILease) メソッド

定義

リースの所有権を取得します。

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease> AcquireAsync (Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease lease);
abstract member AcquireAsync : Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease>
Public Function AcquireAsync (lease As ILease) As Task(Of ILease)

パラメーター

lease
ILease

取得するリース

戻り値

取得したリースを更新しました

例外

他のホストが同時に取得された場合にスローされます

適用対象