ILeaseAcquireReasonProvider Interface
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.
Provides extensibility for ILease interface. ILease implementation can also can implement this interface to utilize the ability to set lease acquire reason from IParitionLoadBalancingStrategy. Lease acquire reason allows ILeaseStoreManager to handle conflicts on lease acquisition differently for different reasons.
public interface ILeaseAcquireReasonProvider
type ILeaseAcquireReasonProvider = interface
Public Interface ILeaseAcquireReasonProvider
Remarks
If lease was detected as Expired, etag conflict with a previous owner will fail the lease acquisition. Newer lease version indicates that the decision about lease expiration should be re-evaluated. For other acquire reasons such conflicts with unchanged owner can be retried.
Properties
AcquireReason |
Gets or sets a reason of acquiring a lease which can be managed from IParitionLoadBalancingStrategy. |
Applies to
Azure SDK for .NET