ILeaseProvider.Acquire(String, LeaseRequest[]) 方法

定义

Batch 获取租约操作

public System.Threading.Tasks.Task<Orleans.LeaseProviders.AcquireLeaseResult[]> Acquire (string category, Orleans.LeaseProviders.LeaseRequest[] leaseRequests);
abstract member Acquire : string * Orleans.LeaseProviders.LeaseRequest[] -> System.Threading.Tasks.Task<Orleans.LeaseProviders.AcquireLeaseResult[]>
Public Function Acquire (category As String, leaseRequests As LeaseRequest()) As Task(Of AcquireLeaseResult())

参数

category
String

资源类别

leaseRequests
LeaseRequest[]

返回

租约获取结果数组,其顺序与 leaseRequstes 相同

适用于