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)

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)

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)