Skip to content
DocsTry Aspire
DocsTry

NullPublishingActivityReporter Methods

ClassMethods3 members
A no-op implementation of IPipelineActivityReporter for testing purposes.
CompletePublishAsync(PublishCompletionOptions?, CancellationToken)Section titled CompletePublishAsync(PublishCompletionOptions?, CancellationToken)Task
Signals that the entire publishing process has completed.
public sealed class NullPublishingActivityReporter
{
public Task CompletePublishAsync(
PublishCompletionOptions? options = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
optionsPublishCompletionOptions?optionalThe options for completing the publishing process.
cancellationTokenCancellationTokenoptionalThe cancellation token.
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))
{
// ...
}
}
completionMessagestring?optionalThe completion message of the publishing process.
completionStateCompletionState?optionalThe completion state of the publishing process. When null, the state is automatically aggregated from all steps.
cancellationTokenCancellationTokenoptionalThe 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))
{
// ...
}
}
titlestringThe title of the publishing step.
cancellationTokenCancellationTokenoptionalThe cancellation token.
Task<IReportingStep>The publishing step