InMemoryLeaseProvider.Acquire(String, LeaseRequest[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Batch acquire leases operation
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[]>
override this.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())
Parameters
- category
- String
resource category
- leaseRequests
- LeaseRequest[]
Returns
Lease acquiring results array, whose order is the same with leaseRequstes