Class LeaseToken

Namespace
Cratis.Chronicle.Occurrences
Assembly
Cratis.Chronicle.dll

Identifies the fenced lease of an occurrence attempt.

public record LeaseToken : IEquatable<LeaseToken>
Inheritance
LeaseToken
Implements
Inherited Members
Extension Methods

Constructors

LeaseToken(LeaseToken)

protected LeaseToken(LeaseToken original)

Parameters

original LeaseToken

LeaseToken(OccurrenceId, long)

Identifies the fenced lease of an occurrence attempt.

public LeaseToken(OccurrenceId OccurrenceId, long Epoch)

Parameters

OccurrenceId OccurrenceId

The occurrence.

Epoch long

The claimed epoch.

Properties

Epoch

The claimed epoch.

public long Epoch { get; init; }

Property Value

long

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

OccurrenceId

The occurrence.

public OccurrenceId OccurrenceId { get; init; }

Property Value

OccurrenceId

Methods

Deconstruct(out OccurrenceId, out long)

public void Deconstruct(out OccurrenceId OccurrenceId, out long Epoch)

Parameters

OccurrenceId OccurrenceId
Epoch long

Equals(LeaseToken?)

public virtual bool Equals(LeaseToken? other)

Parameters

other LeaseToken

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LeaseToken?, LeaseToken?)

public static bool operator ==(LeaseToken? left, LeaseToken? right)

Parameters

left LeaseToken
right LeaseToken

Returns

bool

operator !=(LeaseToken?, LeaseToken?)

public static bool operator !=(LeaseToken? left, LeaseToken? right)

Parameters

left LeaseToken
right LeaseToken

Returns

bool