Class DiscoveredArtifact

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

Represents an artifact found by the client, not a registration verdict.

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

Constructors

DiscoveredArtifact(ArtifactKind, string, Type?)

Represents an artifact found by the client, not a registration verdict.

public DiscoveredArtifact(ArtifactKind Kind, string Id, Type? ClrType)

Parameters

Kind ArtifactKind

The kind of artifact.

Id string

The identifier used when registering it.

ClrType Type

The declared CLR type, or null for an artifact without one.

DiscoveredArtifact(DiscoveredArtifact)

protected DiscoveredArtifact(DiscoveredArtifact original)

Parameters

original DiscoveredArtifact

Properties

ClrType

The declared CLR type, or null for an artifact without one.

public Type? ClrType { get; init; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

The identifier used when registering it.

public string Id { get; init; }

Property Value

string

Kind

The kind of artifact.

public ArtifactKind Kind { get; init; }

Property Value

ArtifactKind

Methods

Deconstruct(out ArtifactKind, out string, out Type?)

public void Deconstruct(out ArtifactKind Kind, out string Id, out Type? ClrType)

Parameters

Kind ArtifactKind
Id string
ClrType Type

Equals(DiscoveredArtifact?)

public virtual bool Equals(DiscoveredArtifact? other)

Parameters

other DiscoveredArtifact

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

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

Parameters

left DiscoveredArtifact
right DiscoveredArtifact

Returns

bool

operator !=(DiscoveredArtifact?, DiscoveredArtifact?)

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

Parameters

left DiscoveredArtifact
right DiscoveredArtifact

Returns

bool