Skip to content
Docs Try Aspire

NullPublishingActivityReporter Methods

Class Methods 2 members
A no-op implementation of IPipelineActivityReporter for testing purposes.
CompletePublishAsync(string?, CompletionState?, CancellationToken) Section titled CompletePublishAsync(string?, CompletionState?, CancellationToken) Task
Signals that the entire publishing process has completed.
public sealed class NullPublishingActivityReporter
{
public Task CompletePublishAsync(
string? completionMessage = null,
CompletionState? completionState = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
completionMessage string? optional The completion message of the publishing process.
completionState CompletionState? optional The completion state of the publishing process. When null, the state is automatically aggregated from all steps.
cancellationToken CancellationToken optional The cancellation token.
Creates a new publishing step with the specified title.
public sealed class NullPublishingActivityReporter
{
public Task<IReportingStep> CreateStepAsync(
string title,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
title string The title of the publishing step.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingStep> The publishing step