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
originalLeaseToken
LeaseToken(OccurrenceId, long)
Identifies the fenced lease of an occurrence attempt.
public LeaseToken(OccurrenceId OccurrenceId, long Epoch)
Parameters
OccurrenceIdOccurrenceIdThe occurrence.
EpochlongThe claimed epoch.
Properties
Epoch
The claimed epoch.
public long Epoch { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
OccurrenceId
The occurrence.
public OccurrenceId OccurrenceId { get; init; }
Property Value
Methods
Deconstruct(out OccurrenceId, out long)
public void Deconstruct(out OccurrenceId OccurrenceId, out long Epoch)
Parameters
OccurrenceIdOccurrenceIdEpochlong
Equals(LeaseToken?)
public virtual bool Equals(LeaseToken? other)
Parameters
otherLeaseToken
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(LeaseToken?, LeaseToken?)
public static bool operator ==(LeaseToken? left, LeaseToken? right)
Parameters
leftLeaseTokenrightLeaseToken
Returns
operator !=(LeaseToken?, LeaseToken?)
public static bool operator !=(LeaseToken? left, LeaseToken? right)
Parameters
leftLeaseTokenrightLeaseToken