Class ProtoRunGateResult
The verdict of one Run gate.
public sealed record ProtoRunGateResult : IEquatable<ProtoRunGateResult>
- Inheritance
-
ProtoRunGateResult
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoRunGateResult(ProtoRunGateOutcome, string?, IReadOnlyList<string>?)
The verdict of one Run gate.
public ProtoRunGateResult(ProtoRunGateOutcome Outcome, string? Message = null, IReadOnlyList<string>? Details = null)
Parameters
OutcomeProtoRunGateOutcomeMessagestringDetailsIReadOnlyList<string>
Properties
Details
public IReadOnlyList<string>? Details { get; init; }
Property Value
Message
public string? Message { get; init; }
Property Value
Outcome
public ProtoRunGateOutcome Outcome { get; init; }
Property Value
Methods
Failed(string, IReadOnlyList<string>?)
public static ProtoRunGateResult Failed(string message, IReadOnlyList<string>? details = null)
Parameters
messagestringdetailsIReadOnlyList<string>
Returns
Passed(string?)
public static ProtoRunGateResult Passed(string? message = null)
Parameters
messagestring
Returns
Skipped(string?)
public static ProtoRunGateResult Skipped(string? message = null)
Parameters
messagestring
Returns
Warning(string, IReadOnlyList<string>?)
A gate that reports a problem without failing the run.
public static ProtoRunGateResult Warning(string message, IReadOnlyList<string>? details = null)
Parameters
messagestringdetailsIReadOnlyList<string>