PublishingExtensions.SucceedAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| SucceedAsync(IReportingStep, String, CancellationToken) |
Completes a publishing step successfully. |
| SucceedAsync(IReportingTask, String, CancellationToken) |
Completes a publishing task successfully. |
SucceedAsync(IReportingStep, String, CancellationToken)
- Source:
- PublishingExtensions.cs
Completes a publishing step successfully.
public static System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.IReportingStep> SucceedAsync(this Aspire.Hosting.Pipelines.IReportingStep step, string? message = default, System.Threading.CancellationToken cancellationToken = default);
static member SucceedAsync : Aspire.Hosting.Pipelines.IReportingStep * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.IReportingStep>
<Extension()>
Public Function SucceedAsync (step As IReportingStep, Optional message As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReportingStep)
Parameters
- step
- IReportingStep
The step to complete.
- message
- String
Optional completion message.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The completed step.
Applies to
SucceedAsync(IReportingTask, String, CancellationToken)
- Source:
- PublishingExtensions.cs
Completes a publishing task successfully.
public static System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.IReportingTask> SucceedAsync(this Aspire.Hosting.Pipelines.IReportingTask task, string? message = default, System.Threading.CancellationToken cancellationToken = default);
static member SucceedAsync : Aspire.Hosting.Pipelines.IReportingTask * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.IReportingTask>
<Extension()>
Public Function SucceedAsync (task As IReportingTask, Optional message As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReportingTask)
Parameters
- task
- IReportingTask
The task to complete.
- message
- String
Optional completion message.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The completed task.