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
originalReadModelKey
ReadModelKey(string)
Represents the unique identifier of an instance of an event source.
public ReadModelKey(string Value)
Parameters
ValuestringActual value.
Fields
Unspecified
Gets the representation of an unspecified ReadModelKey.
public static readonly ReadModelKey Unspecified
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
IsSpecified
Check whether or not the ReadModelKey is specified.
public bool IsSpecified { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(ReadModelKey?)
public virtual bool Equals(ReadModelKey? other)
Parameters
otherReadModelKey
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 ==(ReadModelKey?, ReadModelKey?)
public static bool operator ==(ReadModelKey? left, ReadModelKey? right)
Parameters
leftReadModelKeyrightReadModelKey
Returns
implicit operator ReadModelKey(EventSourceId)
Implicitly convert from EventSourceId to ReadModelKey.
public static implicit operator ReadModelKey(EventSourceId id)
Parameters
idEventSourceIdEventSourceId 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
idReadModelKeyReadModelKey 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
Returns
- ReadModelKey
A converted ReadModelKey.
implicit operator ReadModelKey(string)
Implicitly convert from string to ReadModelKey.
public static implicit operator ReadModelKey(string id)
Parameters
Returns
- ReadModelKey
A converted ReadModelKey.
operator !=(ReadModelKey?, ReadModelKey?)
public static bool operator !=(ReadModelKey? left, ReadModelKey? right)
Parameters
leftReadModelKeyrightReadModelKey