Class ProjectionId

Namespace
Cratis.Chronicle.Projections
Assembly
Cratis.Chronicle.dll

Represents the unique identifier of a projection.

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

Constructors

ProjectionId(ProjectionId)

protected ProjectionId(ProjectionId original)

Parameters

original ProjectionId

ProjectionId(string)

Represents the unique identifier of a projection.

public ProjectionId(string Value)

Parameters

Value string

The value.

Fields

NotSet

The value representing an unset projection identifier.

public static readonly ProjectionId NotSet

Field Value

ProjectionId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(ProjectionId?)

public virtual bool Equals(ProjectionId? other)

Parameters

other ProjectionId

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

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

Parameters

left ProjectionId
right ProjectionId

Returns

bool

implicit operator ProjectionId(string)

Implicitly convert from Guid to ProjectionId.

public static implicit operator ProjectionId(string value)

Parameters

value string

Guid to convert from.

Returns

ProjectionId

operator !=(ProjectionId?, ProjectionId?)

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

Parameters

left ProjectionId
right ProjectionId

Returns

bool