Class DiscoveryReport
- Namespace
- Cratis.Chronicle.Discovery
- Assembly
- Cratis.Chronicle.dll
Represents the artifacts found by the last discovery pass.
public record DiscoveryReport : IEquatable<DiscoveryReport>
- Inheritance
-
DiscoveryReport
- Implements
- Inherited Members
- Extension Methods
Constructors
DiscoveryReport(DiscoveryReport)
protected DiscoveryReport(DiscoveryReport original)
Parameters
originalDiscoveryReport
DiscoveryReport(bool, IImmutableList<DiscoveredArtifact>)
Represents the artifacts found by the last discovery pass.
public DiscoveryReport(bool HasRun, IImmutableList<DiscoveredArtifact> Artifacts)
Parameters
HasRunboolWhether discovery has completed.
ArtifactsIImmutableList<DiscoveredArtifact>The discovered artifacts.
Fields
NotRun
The report before discovery has completed.
public static readonly DiscoveryReport NotRun
Field Value
Properties
Artifacts
The discovered artifacts.
public IImmutableList<DiscoveredArtifact> Artifacts { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
HasRun
Whether discovery has completed.
public bool HasRun { get; init; }
Property Value
Methods
CountOf(ArtifactKind)
Counts artifacts of a given kind.
public int CountOf(ArtifactKind kind)
Parameters
kindArtifactKindThe kind to count.
Returns
- int
The number of matching artifacts.
Deconstruct(out bool, out IImmutableList<DiscoveredArtifact>)
public void Deconstruct(out bool HasRun, out IImmutableList<DiscoveredArtifact> Artifacts)
Parameters
HasRunboolArtifactsIImmutableList<DiscoveredArtifact>
Equals(DiscoveryReport?)
Compares reports by value, including their artifact lists.
public virtual bool Equals(DiscoveryReport? other)
Parameters
otherDiscoveryReportThe report to compare with.
Returns
- bool
Whether both reports carry the same discovery facts.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
OfKind(ArtifactKind)
Selects artifacts of a given kind.
public IEnumerable<DiscoveredArtifact> OfKind(ArtifactKind kind)
Parameters
kindArtifactKindThe kind to select.
Returns
- IEnumerable<DiscoveredArtifact>
The matching artifacts.
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DiscoveryReport?, DiscoveryReport?)
public static bool operator ==(DiscoveryReport? left, DiscoveryReport? right)
Parameters
leftDiscoveryReportrightDiscoveryReport
Returns
operator !=(DiscoveryReport?, DiscoveryReport?)
public static bool operator !=(DiscoveryReport? left, DiscoveryReport? right)
Parameters
leftDiscoveryReportrightDiscoveryReport