Class ReadModelKey

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Represents the unique identifier of an instance of an event source.

public record ReadModelKey : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<ReadModelKey>
Inheritance
ReadModelKey
Implements
Inherited Members
Extension Methods

Constructors

ReadModelKey(ReadModelKey)

protected ReadModelKey(ReadModelKey original)

Parameters

original ReadModelKey

ReadModelKey(string)

Represents the unique identifier of an instance of an event source.

public ReadModelKey(string Value)

Parameters

Value string

Actual value.

Fields

Unspecified

Gets the representation of an unspecified ReadModelKey.

public static readonly ReadModelKey Unspecified

Field Value

ReadModelKey

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IsSpecified

Check whether or not the ReadModelKey is specified.

public bool IsSpecified { get; }

Property Value

bool

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(ReadModelKey?)

public virtual bool Equals(ReadModelKey? other)

Parameters

other ReadModelKey

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 ==(ReadModelKey?, ReadModelKey?)

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

Parameters

left ReadModelKey
right ReadModelKey

Returns

bool

implicit operator ReadModelKey(EventSourceId)

Implicitly convert from EventSourceId to ReadModelKey.

public static implicit operator ReadModelKey(EventSourceId id)

Parameters

id EventSourceId

EventSourceId to convert from.

Returns

ReadModelKey

A converted ReadModelKey.

implicit operator EventSourceId(ReadModelKey)

Implicitly convert from ReadModelKey to EventSourceId.

public static implicit operator EventSourceId(ReadModelKey id)

Parameters

id ReadModelKey

ReadModelKey to convert from.

Returns

EventSourceId

A converted EventSourceId.

implicit operator ReadModelKey(Guid)

Implicitly convert from Guid to ReadModelKey.

public static implicit operator ReadModelKey(Guid id)

Parameters

id Guid

Guid to convert from.

Returns

ReadModelKey

A converted ReadModelKey.

implicit operator ReadModelKey(string)

Implicitly convert from string to ReadModelKey.

public static implicit operator ReadModelKey(string id)

Parameters

id string

string to convert from.

Returns

ReadModelKey

A converted ReadModelKey.

operator !=(ReadModelKey?, ReadModelKey?)

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

Parameters

left ReadModelKey
right ReadModelKey

Returns

bool