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)) { // ... }}Parameters
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)) { // ... }}Parameters
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.CreateStepAsync(string, CancellationToken)Section titled CreateStepAsync(string, CancellationToken)Task<IReportingStep> Creates a new publishing step with the specified title.
public sealed class NullPublishingActivityReporter{ public Task<IReportingStep> CreateStepAsync( string title, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
titlestringThe title of the publishing step.cancellationTokenCancellationTokenoptionalThe cancellation token.Returns
Task<IReportingStep>The publishing step