Skip to content

AzureBlobLeaseProvider Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

Acquire(string, LeaseRequest[])

View source
public Task<AcquireLeaseResult[]> Acquire(string category, LeaseRequest[] leaseRequests)
Batch acquire leases operation

Parameters

categorystring
resource category
leaseRequestsLeaseRequest[]

Returns

Lease acquiring results array, whose order is the same with leaseRequstes

Renew(string, AcquiredLease[])

View source
public Task<AcquireLeaseResult[]> Renew(string category, AcquiredLease[] acquiredLeases)
Batch renew lease operation

Parameters

categorystring
resource category
acquiredLeasesAcquiredLease[]

Returns

Lease renew results array, whose order is the same with acquiredLeases