Class RunResult
Represents the result of a RunAsync(RefitGeneratorSettings, IFileWriter?, IValidator?, string?, string?, CancellationToken) invocation.
public record RunResult : IEquatable<RunResult>
- Inheritance
-
RunResult
- Implements
- Inherited Members
Constructors
RunResult(IReadOnlyList<PlannedFile>, IReadOnlyList<Warning>, IReadOnlyList<RunnerDiagnostic>, TimeSpan, int, Exception?)
Represents the result of a RunAsync(RefitGeneratorSettings, IFileWriter?, IValidator?, string?, string?, CancellationToken) invocation.
public RunResult(IReadOnlyList<PlannedFile> GeneratedFiles, IReadOnlyList<Warning> Warnings, IReadOnlyList<RunnerDiagnostic> Diagnostics, TimeSpan Elapsed, int ExitCode, Exception? Exception = null)
Parameters
GeneratedFilesIReadOnlyList<PlannedFile>The list of planned output files with their paths and content.
WarningsIReadOnlyList<Warning>Configuration warnings detected during the run.
DiagnosticsIReadOnlyList<RunnerDiagnostic>Validation and error diagnostics collected during the run.
ElapsedTimeSpanThe elapsed time of the run.
ExitCodeintThe exit code (0 for success, non-zero for failure).
ExceptionExceptionThe original exception, if any, for form-specific error handling.
Properties
Diagnostics
Validation and error diagnostics collected during the run.
public IReadOnlyList<RunnerDiagnostic> Diagnostics { get; init; }
Property Value
Elapsed
The elapsed time of the run.
public TimeSpan Elapsed { get; init; }
Property Value
Exception
The original exception, if any, for form-specific error handling.
public Exception? Exception { get; init; }
Property Value
ExitCode
The exit code (0 for success, non-zero for failure).
public int ExitCode { get; init; }
Property Value
GeneratedFiles
The list of planned output files with their paths and content.
public IReadOnlyList<PlannedFile> GeneratedFiles { get; init; }
Property Value
Warnings
Configuration warnings detected during the run.
public IReadOnlyList<Warning> Warnings { get; init; }