Class LeaderElectionAutomaticRenewalOptions
- Namespace
- Azure.Iot.Operations.Services.LeaderElection
- Assembly
- Azure.Iot.Operations.Services.dll
public class LeaderElectionAutomaticRenewalOptions
- Inheritance
-
LeaderElectionAutomaticRenewalOptions
- Inherited Members
Properties
AutomaticRenewal
If true, this client will automatically run for re-election until this value is set to false or when the client calls ResignAsync(ResignationRequestOptions?, CancellationToken) with CancelAutomaticRenewal set to true.
public bool AutomaticRenewal { get; set; }
Property Value
ElectionTerm
The length of each term that this client will automatically campaign for.
public TimeSpan ElectionTerm { get; set; }
Property Value
Remarks
This value only has millisecond-level precision.
RenewalPeriod
The period to wait between each attempt to campaign to be leader.
public TimeSpan RenewalPeriod { get; set; }