Class LeasedLockAutomaticRenewalOptions
- Namespace
- Azure.Iot.Operations.Services.LeasedLock
- Assembly
- Azure.Iot.Operations.Services.dll
public class LeasedLockAutomaticRenewalOptions
- Inheritance
-
LeasedLockAutomaticRenewalOptions
- Inherited Members
Properties
AutomaticRenewal
If true, this client will automatically attempt to renew ownership of a lock until this value is set to false or when the client calls ReleaseLockAsync(ReleaseLockRequestOptions?, CancellationToken) with CancelAutomaticRenewal set to true.
public bool AutomaticRenewal { get; set; }
Property Value
LeaseTermLength
The length of each lease that this client will automatically re-acquire the lock for.
public TimeSpan LeaseTermLength { get; set; }
Property Value
Remarks
This value only has millisecond-level precision.
RenewalPeriod
The period to wait between each attempt to re-acquire the lock.
public TimeSpan RenewalPeriod { get; set; }