# IReportingTask

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Pipelines`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/IReportingTask.cs)
- Implements: `IAsyncDisposable`

Represents a publishing task, which belongs to a step.

## Definition

```csharp
namespace Aspire.Hosting.Pipelines;

public interface IReportingTask
    : System.IAsyncDisposable
{
    // ...
}
```

## Methods

- [CompleteAsync(string?, CompletionState, CancellationToken)](/reference/api/csharp/aspire.hosting/ireportingtask/methods.md#completeasync-string-completionstate-cancellationtoken) : `Task` `abstract` -- Completes the task with the specified completion message.
- [CompleteAsync(MarkdownString, CompletionState, CancellationToken)](/reference/api/csharp/aspire.hosting/ireportingtask/methods.md#completeasync-markdownstring-completionstate-cancellationtoken) : `Task` `abstract` -- Completes the task with a Markdown-formatted completion message.
- [UpdateAsync(string, CancellationToken)](/reference/api/csharp/aspire.hosting/ireportingtask/methods.md#updateasync-string-cancellationtoken) : `Task` `abstract` -- Updates the status text of this task.
- [UpdateAsync(MarkdownString, CancellationToken)](/reference/api/csharp/aspire.hosting/ireportingtask/methods.md#updateasync-markdownstring-cancellationtoken) : `Task` `abstract` -- Updates the status text of this task with Markdown-formatted text.
