Table of Contents

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

Constructors

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

IsSpecified

Check whether or not the ReadModelKey is specified.

public bool IsSpecified { get; }

Property Value

bool

Operators

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.