Table of Contents

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

bool

ElectionTerm

The length of each term that this client will automatically campaign for.

public TimeSpan ElectionTerm { get; set; }

Property Value

TimeSpan

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; }

Property Value

TimeSpan