ILeaseProvider.Acquire(String, LeaseRequest[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 相同