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
KindArtifactKindThe kind of artifact.
IdstringThe identifier used when registering it.
ClrTypeTypeThe declared CLR type, or null for an artifact without one.
DiscoveredArtifact(DiscoveredArtifact)
protected DiscoveredArtifact(DiscoveredArtifact original)
Parameters
originalDiscoveredArtifact
Properties
ClrType
The declared CLR type, or null for an artifact without one.
public Type? ClrType { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Id
The identifier used when registering it.
public string Id { get; init; }
Property Value
Kind
The kind of artifact.
public ArtifactKind Kind { get; init; }
Property Value
Methods
Deconstruct(out ArtifactKind, out string, out Type?)
public void Deconstruct(out ArtifactKind Kind, out string Id, out Type? ClrType)
Parameters
KindArtifactKindIdstringClrTypeType
Equals(DiscoveredArtifact?)
public virtual bool Equals(DiscoveredArtifact? other)
Parameters
otherDiscoveredArtifact
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DiscoveredArtifact?, DiscoveredArtifact?)
public static bool operator ==(DiscoveredArtifact? left, DiscoveredArtifact? right)
Parameters
leftDiscoveredArtifactrightDiscoveredArtifact
Returns
operator !=(DiscoveredArtifact?, DiscoveredArtifact?)
public static bool operator !=(DiscoveredArtifact? left, DiscoveredArtifact? right)
Parameters
leftDiscoveredArtifactrightDiscoveredArtifact