Class EventSequenceId
- Namespace
- Cratis.Chronicle.EventSequences
- Assembly
- Cratis.Chronicle.dll
Represents the unique identifier of an event sequence.
public record EventSequenceId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventSequenceId>
- Inheritance
-
EventSequenceId
- Implements
- Inherited Members
- Extension Methods
Constructors
EventSequenceId(EventSequenceId)
protected EventSequenceId(EventSequenceId original)
Parameters
originalEventSequenceId
EventSequenceId(string)
Represents the unique identifier of an event sequence.
public EventSequenceId(string Value)
Parameters
ValuestringActual value.
Fields
Inbox
Gets the virtual EventSequenceId representing all inboxes.
public static readonly EventSequenceId Inbox
Field Value
InboxId
The string value for the inbox event sequence identifier.
public const string InboxId = "inbox"
Field Value
InboxPrefix
The prefix used for per-source inbox event sequence identifiers.
public const string InboxPrefix = "inbox-"
Field Value
Log
The EventSequenceId representing the event sequence for the default log.
public static readonly EventSequenceId Log
Field Value
LogId
The string value for the default event log sequence identifier.
public const string LogId = "event-log"
Field Value
Outbox
Gets EventSequenceId of the default outbox.
public static readonly EventSequenceId Outbox
Field Value
OutboxId
The string value for the outbox event sequence identifier.
public const string OutboxId = "outbox"
Field Value
System
The EventSequenceId representing the system event sequence.
public static readonly EventSequenceId System
Field Value
SystemId
The string value for the system event sequence identifier.
public const string SystemId = "system"
Field Value
Unspecified
The EventSequenceId representing an unspecified value.
public static readonly EventSequenceId Unspecified
Field Value
UnspecifiedId
The string value for the unspecified event sequence identifier.
public const string UnspecifiedId = "[unspecified]"
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
IsEventLog
Get whether or not this is the default log event sequence.
public bool IsEventLog { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(EventSequenceId?)
public virtual bool Equals(EventSequenceId? other)
Parameters
otherEventSequenceId
Returns
Equals(ConceptAs<string>?)
public override sealed bool Equals(ConceptAs<string>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(EventSequenceId?, EventSequenceId?)
public static bool operator ==(EventSequenceId? left, EventSequenceId? right)
Parameters
leftEventSequenceIdrightEventSequenceId
Returns
implicit operator EventSequenceId(string)
Implicitly convert from a string to EventSequenceId.
public static implicit operator EventSequenceId(string id)
Parameters
idstringString to convert from.
Returns
operator !=(EventSequenceId?, EventSequenceId?)
public static bool operator !=(EventSequenceId? left, EventSequenceId? right)
Parameters
leftEventSequenceIdrightEventSequenceId