Class IdentityId

Namespace
Cratis.Chronicle.Identities
Assembly
Cratis.Chronicle.dll

Represents an identifier for details holding actual Identity.

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

Constructors

IdentityId(IdentityId)

protected IdentityId(IdentityId original)

Parameters

original IdentityId

IdentityId(Guid)

Represents an identifier for details holding actual Identity.

public IdentityId(Guid Value)

Parameters

Value Guid

The actual value.

Fields

NotSet

Gets the IdentityId representing "not set".

public static readonly IdentityId NotSet

Field Value

IdentityId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out Guid)

public void Deconstruct(out Guid Value)

Parameters

Value Guid

Equals(IdentityId?)

public virtual bool Equals(IdentityId? other)

Parameters

other IdentityId

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

New()

Creates a new IdentityId.

public static IdentityId New()

Returns

IdentityId

Newly created IdentityId.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(IdentityId?, IdentityId?)

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

Parameters

left IdentityId
right IdentityId

Returns

bool

implicit operator IdentityId(Guid)

Implicitly convert from Guid to IdentityId.

public static implicit operator IdentityId(Guid value)

Parameters

value Guid

Guid to convert from.

Returns

IdentityId

operator !=(IdentityId?, IdentityId?)

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

Parameters

left IdentityId
right IdentityId

Returns

bool