Class ArtifactIdentityDrift

Namespace
Cratis.Chronicle.Discovery
Assembly
Cratis.Chronicle.dll

Represents evidence of a likely artifact rename or move, not proof of one.

public record ArtifactIdentityDrift : IEquatable<ArtifactIdentityDrift>
Inheritance
ArtifactIdentityDrift
Implements
Inherited Members
Extension Methods

Constructors

ArtifactIdentityDrift(ArtifactIdentityDrift)

protected ArtifactIdentityDrift(ArtifactIdentityDrift original)

Parameters

original ArtifactIdentityDrift

ArtifactIdentityDrift(ArtifactKind, string, string)

Represents evidence of a likely artifact rename or move, not proof of one.

public ArtifactIdentityDrift(ArtifactKind Kind, string PreviousId, string CurrentId)

Parameters

Kind ArtifactKind

The kind of artifact.

PreviousId string

The identifier found in the kernel.

CurrentId string

The newly declared identifier.

Properties

CurrentId

The newly declared identifier.

public string CurrentId { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Kind

The kind of artifact.

public ArtifactKind Kind { get; init; }

Property Value

ArtifactKind

PreviousId

The identifier found in the kernel.

public string PreviousId { get; init; }

Property Value

string

Methods

Deconstruct(out ArtifactKind, out string, out string)

public void Deconstruct(out ArtifactKind Kind, out string PreviousId, out string CurrentId)

Parameters

Kind ArtifactKind
PreviousId string
CurrentId string

Equals(ArtifactIdentityDrift?)

public virtual bool Equals(ArtifactIdentityDrift? other)

Parameters

other ArtifactIdentityDrift

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 virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ArtifactIdentityDrift?, ArtifactIdentityDrift?)

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

Parameters

left ArtifactIdentityDrift
right ArtifactIdentityDrift

Returns

bool

operator !=(ArtifactIdentityDrift?, ArtifactIdentityDrift?)

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

Parameters

left ArtifactIdentityDrift
right ArtifactIdentityDrift

Returns

bool