Skip to content

ReadyToRunQueryResult

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

The result of a ReadyToRunCorrelationQuery: an Outcome with exactly the payload that outcome carries — a Report when resolved, a candidate list when ambiguous, a Message explaining a miss or an unavailable image.

public sealed record ReadyToRunQueryResult : IEquatable<ReadyToRunQueryResult>

ObjectReadyToRunQueryResult

ReadyToRunQueryResult(ReadyToRunQueryOutcome, ReadyToRunMethodReport?, IReadOnlyList<CorrelationCandidate>, string?)

Section titled “ReadyToRunQueryResult(ReadyToRunQueryOutcome, ReadyToRunMethodReport?, IReadOnlyList<CorrelationCandidate>, string?)”

The result of a ReadyToRunCorrelationQuery: an Outcome with exactly the payload that outcome carries — a Report when resolved, a candidate list when ambiguous, a Message explaining a miss or an unavailable image.

Parameters:

public ReadyToRunQueryResult(ReadyToRunQueryOutcome Outcome, ReadyToRunMethodReport? Report, IReadOnlyList<CorrelationCandidate> Candidates, string? Message)

The ambiguous matches, empty unless Outcome is Ambiguous.

Returns: IReadOnlyList<CorrelationCandidate>

public IReadOnlyList<CorrelationCandidate> Candidates { get; init; }

A human-readable explanation for a non-resolved outcome, or null when resolved.

Returns: String

public string? Message { get; init; }

How the query resolved.

Returns: ReadyToRunQueryOutcome

public ReadyToRunQueryOutcome Outcome { get; init; }

The resolved correlation, or null unless Outcome is Resolved.

Returns: ReadyToRunMethodReport

public ReadyToRunMethodReport? Report { get; init; }

Ambiguous(IReadOnlyList<CorrelationCandidate>, string)

Section titled “Ambiguous(IReadOnlyList<CorrelationCandidate>, string)”

Creates an ambiguous result listing every matched candidate.

Parameters:

Returns: ReadyToRunQueryResult

public static ReadyToRunQueryResult Ambiguous(IReadOnlyList<CorrelationCandidate> candidates, string message)

Deconstruct(out ReadyToRunQueryOutcome, out ReadyToRunMethodReport?, out IReadOnlyList<CorrelationCandidate>, out string?)

Section titled “Deconstruct(out ReadyToRunQueryOutcome, out ReadyToRunMethodReport?, out IReadOnlyList<CorrelationCandidate>, out string?)”

Parameters:

public void Deconstruct(out ReadyToRunQueryOutcome Outcome, out ReadyToRunMethodReport? Report, out IReadOnlyList<CorrelationCandidate> Candidates, out string? Message)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(ReadyToRunQueryResult? other)

Returns: Int32

public override int GetHashCode()

Creates a not-found result explaining the miss.

Parameters:

  • message (String): Why nothing matched.

Returns: ReadyToRunQueryResult

public static ReadyToRunQueryResult NotFound(string message)

Creates a resolved result carrying the report.

Parameters:

Returns: ReadyToRunQueryResult

public static ReadyToRunQueryResult Resolved(ReadyToRunMethodReport report)

Returns: String

public override string ToString()

Creates an unavailable result explaining why correlation could not run.

Parameters:

  • message (String): Why the image is not usable.

Returns: ReadyToRunQueryResult

public static ReadyToRunQueryResult Unavailable(string message)

operator !=(ReadyToRunQueryResult?, ReadyToRunQueryResult?)

Section titled “operator !=(ReadyToRunQueryResult?, ReadyToRunQueryResult?)”

Parameters:

Returns: Boolean

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

operator ==(ReadyToRunQueryResult?, ReadyToRunQueryResult?)

Section titled “operator ==(ReadyToRunQueryResult?, ReadyToRunQueryResult?)”

Parameters:

Returns: Boolean

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