Class ProjectionSessionId

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

Represents a session for a projection, typically used when asking to project immediately.

public record ProjectionSessionId : ConceptAs<Guid>, IComparable<ConceptAs<Guid>>, IComparable<Guid>, IComparable, IEquatable<ConceptAs<Guid>>, IEquatable<ProjectionSessionId>
Inheritance
ProjectionSessionId
Implements
Inherited Members
Extension Methods

Constructors

ProjectionSessionId(ProjectionSessionId)

protected ProjectionSessionId(ProjectionSessionId original)

Parameters

original ProjectionSessionId

ProjectionSessionId(Guid)

Represents a session for a projection, typically used when asking to project immediately.

public ProjectionSessionId(Guid Value)

Parameters

Value Guid

Inner value.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out Guid)

public void Deconstruct(out Guid Value)

Parameters

Value Guid

Equals(ProjectionSessionId?)

public virtual bool Equals(ProjectionSessionId? other)

Parameters

other ProjectionSessionId

Returns

bool

Equals(ConceptAs<Guid>?)

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

Parameters

other ConceptAs<Guid>

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

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

Parameters

left ProjectionSessionId
right ProjectionSessionId

Returns

bool

implicit operator CorrelationId(ProjectionSessionId)

Implicitly convert from ProjectionSessionId to CorrelationId.

public static implicit operator CorrelationId(ProjectionSessionId sessionId)

Parameters

sessionId ProjectionSessionId

ProjectionSessionId to convert from.

Returns

CorrelationId

implicit operator ProjectionSessionId(CorrelationId)

Implicitly convert from CorrelationId to ProjectionSessionId.

public static implicit operator ProjectionSessionId(CorrelationId correlationId)

Parameters

correlationId CorrelationId

CorrelationId to convert from.

Returns

ProjectionSessionId

implicit operator ProjectionSessionId(Guid)

Implicitly convert from string to ProjectionSessionId.

public static implicit operator ProjectionSessionId(Guid value)

Parameters

value Guid

String to convert from.

Returns

ProjectionSessionId

operator !=(ProjectionSessionId?, ProjectionSessionId?)

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

Parameters

left ProjectionSessionId
right ProjectionSessionId

Returns

bool