Class EventStreamId
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Represents the unique identifier of an event stream within a EventStreamType .
public record EventStreamId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventStreamId>
- Inheritance
-
EventStreamId
- Implements
- Inherited Members
- Extension Methods
Constructors
EventStreamId(EventStreamId)
protected EventStreamId(EventStreamId original)
Parameters
originalEventStreamId
EventStreamId(string)
Represents the unique identifier of an event stream within a EventStreamType .
public EventStreamId(string Value)
Parameters
ValuestringActual value.
Fields
Default
Gets the representation of an unspecified EventStreamId.
public static readonly string Default
Field Value
NotSet
Gets the representation of a not set EventStreamId.
public static readonly EventStreamId NotSet
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
IsDefault
Check whether or not the EventStreamId is the default.
public bool IsDefault { get; }
Property Value
Remarks
The predicate used to be inverted relative to this comment, answering true for everything except the default. It survived because nothing consumed it - the kernel has its own copy, which is correct and is what the storage tail filters read, and that one has a spec while this one had none.
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(EventStreamId?)
public virtual bool Equals(EventStreamId? other)
Parameters
otherEventStreamId
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 ==(EventStreamId?, EventStreamId?)
public static bool operator ==(EventStreamId? left, EventStreamId? right)
Parameters
leftEventStreamIdrightEventStreamId
Returns
implicit operator EventStreamId(string)
Implicitly convert from string to EventStreamId.
public static implicit operator EventStreamId(string id)
Parameters
Returns
- EventStreamId
A converted EventStreamId.
operator !=(EventStreamId?, EventStreamId?)
public static bool operator !=(EventStreamId? left, EventStreamId? right)
Parameters
leftEventStreamIdrightEventStreamId