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

original EventStreamId

EventStreamId(string)

Represents the unique identifier of an event stream within a EventStreamType .

public EventStreamId(string Value)

Parameters

Value string

Actual value.

Fields

Default

Gets the representation of an unspecified EventStreamId.

public static readonly string Default

Field Value

string

NotSet

Gets the representation of a not set EventStreamId.

public static readonly EventStreamId NotSet

Field Value

EventStreamId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IsDefault

Check whether or not the EventStreamId is the default.

public bool IsDefault { get; }

Property Value

bool

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

Value string

Equals(EventStreamId?)

public virtual bool Equals(EventStreamId? other)

Parameters

other EventStreamId

Returns

bool

Equals(ConceptAs<string>?)

public override sealed bool Equals(ConceptAs<string>? other)

Parameters

other ConceptAs<string>

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(EventStreamId?, EventStreamId?)

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

Parameters

left EventStreamId
right EventStreamId

Returns

bool

implicit operator EventStreamId(string)

Implicitly convert from string to EventStreamId.

public static implicit operator EventStreamId(string id)

Parameters

id string

string to convert from.

Returns

EventStreamId

A converted EventStreamId.

operator !=(EventStreamId?, EventStreamId?)

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

Parameters

left EventStreamId
right EventStreamId

Returns

bool