Vixen
02b45cc4
csharp
public readonly record struct GateOutcome<T>

What a gate answered, or what stopped it answering.

Read the guide page for this →

Fields and properties (5)

  • public T? Value

    It, when there is one.

  • public GateProblem? Problem

    Why not, otherwise.

  • public int Status

    The HTTP status, or 0 when the request never arrived.

  • public bool Ok

    Whether there is an answer.

  • public bool Unreachable

    Whether nothing was reached at all, as opposed to being refused by something.

Methods (2)

  • public GateOutcome(T? Value, GateProblem? Problem, int Status)

    What a gate answered, or what stopped it answering.

  • public override string ToString()

    The answer, or a sentence explaining its absence.

Used by (2)

  • GateClientVixen.Live.Client
  • GateClientTestsVixen.Live.Client.Tests