Skip to content
Docs Try Aspire

PublishingExtensions Methods

Class Methods 7 members
Extension methods for IReportingStep and IReportingTask to provide direct operations.
FailAsync(IReportingStep, string?, CancellationToken) Section titled FailAsync(IReportingStep, string?, CancellationToken) extension Task<IReportingStep>
Completes a publishing step with an error.
public static class PublishingExtensions
{
public static Task<IReportingStep> FailAsync(
this IReportingStep step,
string? errorMessage = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
step IReportingStep The step to complete.
errorMessage string? optional Optional error message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingStep> The completed step.
FailAsync(IReportingTask, string?, CancellationToken) Section titled FailAsync(IReportingTask, string?, CancellationToken) extension Task<IReportingTask>
Completes a publishing task with an error.
public static class PublishingExtensions
{
public static Task<IReportingTask> FailAsync(
this IReportingTask task,
string? errorMessage = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
task IReportingTask The task to complete.
errorMessage string? optional Optional error message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingTask> The completed task.
SucceedAsync(IReportingStep, string?, CancellationToken) Section titled SucceedAsync(IReportingStep, string?, CancellationToken) extension Task<IReportingStep>
Completes a publishing step successfully.
public static class PublishingExtensions
{
public static Task<IReportingStep> SucceedAsync(
this IReportingStep step,
string? message = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
step IReportingStep The step to complete.
message string? optional Optional completion message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingStep> The completed step.
SucceedAsync(IReportingTask, string?, CancellationToken) Section titled SucceedAsync(IReportingTask, string?, CancellationToken) extension Task<IReportingTask>
Completes a publishing task successfully.
public static class PublishingExtensions
{
public static Task<IReportingTask> SucceedAsync(
this IReportingTask task,
string? message = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
task IReportingTask The task to complete.
message string? optional Optional completion message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingTask> The completed task.
UpdateStatusAsync(IReportingTask, string, CancellationToken) Section titled UpdateStatusAsync(IReportingTask, string, CancellationToken) extension Task<IReportingTask>
Updates the status text of a publishing task.
public static class PublishingExtensions
{
public static Task<IReportingTask> UpdateStatusAsync(
this IReportingTask task,
string statusText,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
task IReportingTask The task to update.
statusText string The new status text.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingTask> The updated task.
WarnAsync(IReportingStep, string?, CancellationToken) Section titled WarnAsync(IReportingStep, string?, CancellationToken) extension Task<IReportingStep>
Completes a publishing step with a warning.
public static class PublishingExtensions
{
public static Task<IReportingStep> WarnAsync(
this IReportingStep step,
string? message = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
step IReportingStep The step to complete.
message string? optional Optional completion message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingStep> The completed step.
WarnAsync(IReportingTask, string?, CancellationToken) Section titled WarnAsync(IReportingTask, string?, CancellationToken) extension Task<IReportingTask>
Completes a publishing task with a warning.
public static class PublishingExtensions
{
public static Task<IReportingTask> WarnAsync(
this IReportingTask task,
string? message = null,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
task IReportingTask The task to complete.
message string? optional Optional completion message.
cancellationToken CancellationToken optional The cancellation token.
Task<IReportingTask> The completed task.