Interface IOutcomeReportWriter
Defines a contract for writing a build outcome report to a specific destination.
public interface IOutcomeReportWriter
Remarks
Implementations of this interface are responsible for formatting and outputting the final build report. Multiple writers can be registered to support different output targets, such as the console or CI/CD job summaries.
Methods
ReportRunOutcome(CancellationToken)
Generates and outputs a report of the build execution outcome.
Task ReportRunOutcome(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA cancellation token to observe.
Returns
- Task
A task that represents the asynchronous reporting operation.
Remarks
This method is called by the build executor after all targets have completed. Implementations should access the necessary build state and report data through injected services and format it for their specific output target.