Show / Hide Table of Contents

Class MultiLock

Inheritance
object
MultiLock
Implements
ILock
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: k8s.LeaderElection.ResourceLock
Assembly: KubernetesClient.dll
Syntax
public class MultiLock : ILock

Constructors

View Source

MultiLock(ILock, ILock)

Declaration
public MultiLock(ILock primary, ILock secondary)
Parameters
Type Name Description
ILock primary
ILock secondary

Properties

View Source

Identity

the locks Identity

Declaration
public string Identity { get; }
Property Value
Type Description
string

Methods

View Source

CreateAsync(LeaderElectionRecord, CancellationToken)

Create attempts to create a LeaderElectionRecord

Declaration
public Task<bool> CreateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
LeaderElectionRecord record

record to create

CancellationToken cancellationToken

token to cancel the task

Returns
Type Description
Task<bool>

true if created

View Source

Describe()

Describe is used to convert details on current resource lock into a string

Declaration
public string Describe()
Returns
Type Description
string

resource lock description

View Source

GetAsync(CancellationToken)

Get returns the LeaderElectionRecord

Declaration
public Task<LeaderElectionRecord> GetAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

token to cancel the task

Returns
Type Description
Task<LeaderElectionRecord>

the record

View Source

UpdateAsync(LeaderElectionRecord, CancellationToken)

Update will update and existing LeaderElectionRecord

Declaration
public Task<bool> UpdateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
LeaderElectionRecord record

record to create

CancellationToken cancellationToken

token to cancel the task

Returns
Type Description
Task<bool>

true if updated

Implements

ILock
  • View Source
In this article
Back to top Generated by DocFX