Class ObserverId

Namespace
Cratis.Chronicle.Observation
Assembly
Cratis.Chronicle.dll

Concept that represents the unique identifier of an observer.

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

Constructors

ObserverId(ObserverId)

protected ObserverId(ObserverId original)

Parameters

original ObserverId

ObserverId(string)

Concept that represents the unique identifier of an observer.

public ObserverId(string Value)

Parameters

Value string

Actual value.

Fields

Unspecified

Gets the representation of an unspecified ObserverId.

public static readonly ObserverId Unspecified

Field Value

ObserverId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(ObserverId?)

public virtual bool Equals(ObserverId? other)

Parameters

other ObserverId

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

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

Parameters

left ObserverId
right ObserverId

Returns

bool

implicit operator string(ObserverId)

Implicitly convert from ObserverId to string.

public static implicit operator string(ObserverId id)

Parameters

id ObserverId

ObserverId to convert from.

Returns

string

implicit operator ObserverId(string)

Implicitly convert from a string to ObserverId.

public static implicit operator ObserverId(string id)

Parameters

id string

String to convert from.

Returns

ObserverId

operator !=(ObserverId?, ObserverId?)

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

Parameters

left ObserverId
right ObserverId

Returns

bool