5 implementations of IReportingTask
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
84internal sealed class NullPublishingTask : IReportingTask
Pipelines\ReportingTask.cs (1)
14internal sealed class ReportingTask : IReportingTask
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
239private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
239private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
239private sealed class TestReportingTask : IReportingTask
99 references to IReportingTask
Aspire.Hosting (34)
Ats\AtsTypeMappings.cs (1)
60[assembly: AspireExport(typeof(IReportingTask))]
Ats\PipelineExports.cs (6)
36public static Task<IReportingTask> CreateTask(this IReportingStep reportingStep, string statusText, CancellationToken cancellationToken = default) 48public static Task<IReportingTask> CreateMarkdownTask(this IReportingStep reportingStep, string markdownString, CancellationToken cancellationToken = default) 110public static Task UpdateTask(this IReportingTask reportingTask, string statusText, CancellationToken cancellationToken = default) 122public static Task UpdateTaskMarkdown(this IReportingTask reportingTask, string markdownString, CancellationToken cancellationToken = default) 134public static Task CompleteTask(this IReportingTask reportingTask, string? completionMessage = null, string completionState = "completed", CancellationToken cancellationToken = default) 145public static Task CompleteTaskMarkdown(this IReportingTask reportingTask, string markdownString, string completionState = "completed", CancellationToken cancellationToken = default)
Pipelines\IReportingStep.cs (2)
21Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default); 29Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default);
Pipelines\NullPipelineActivityReporter.cs (4)
40public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 42return Task.FromResult<IReportingTask>(new NullPublishingTask()); 45public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 47return Task.FromResult<IReportingTask>(new NullPublishingTask());
Pipelines\PipelineStepHelpers.cs (2)
68var tagTask = await context.ReportingStep.CreateTaskAsync( 114var pushTask = await context.ReportingStep.CreateTaskAsync(
Pipelines\ReportingStep.cs (2)
94public async Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 105public async Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Publishing\PublishingExtensions.cs (17)
11/// Extension methods for <see cref="IReportingStep"/> and <see cref="IReportingTask"/> to provide direct operations. 122public static async Task<IReportingTask> UpdateStatusAsync( 123this IReportingTask task, 138public static async Task<IReportingTask> UpdateStatusAsync( 139this IReportingTask task, 154public static async Task<IReportingTask> SucceedAsync( 155this IReportingTask task, 170public static async Task<IReportingTask> SucceedAsync( 171this IReportingTask task, 186public static async Task<IReportingTask> WarnAsync( 187this IReportingTask task, 202public static async Task<IReportingTask> WarnAsync( 203this IReportingTask task, 218public static async Task<IReportingTask> FailAsync( 219this IReportingTask task, 234public static async Task<IReportingTask> FailAsync( 235this IReportingTask task,
Aspire.Hosting.Azure (9)
AzureBicepResource.cs (1)
320var resourceTask = await context.ReportingStep
AzurePublishingContext.cs (4)
94var writeTask = await ReportingStep.CreateTaskAsync("Writing Azure Bicep templates", cancellationToken).ConfigureAwait(false); 254var computeEnvironmentTask = await step.CreateTaskAsync( 266var task = await step.CreateTaskAsync( 358var task = await step.CreateTaskAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
129var task = await step.CreateTaskAsync("Fetching available tenants", cancellationToken).ConfigureAwait(false); 228var task = await step.CreateTaskAsync("Fetching available subscriptions", cancellationToken).ConfigureAwait(false); 327var task = await step.CreateTaskAsync("Fetching resource groups", cancellationToken).ConfigureAwait(false); 422var task = await step.CreateTaskAsync("Fetching supported regions", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryHelpers.cs (1)
35var loginTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Azure.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
187public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 195return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 226public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentResource.cs (2)
227var deployTask = await context.ReportingStep.CreateTaskAsync( 294var deployTask = await context.ReportingStep.CreateTaskAsync(
DockerComposePublishingContext.cs (1)
136var writeTask = await reportingStep.CreateTaskAsync(
Aspire.Hosting.Docker.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
187public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 195return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 226public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (38)
Pipelines\PipelineLoggerProviderTests.cs (2)
131public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 136public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Publishing\PipelineActivityReporterTests.cs (25)
67var task = await step.CreateTaskAsync(statusText, CancellationToken.None); 163var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 194var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 216var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 235var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 270var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 335var task1 = await step1.CreateTaskAsync("Task 1", CancellationToken.None); 339var task2 = await step2.CreateTaskAsync("Task 2", CancellationToken.None); 343var task3 = await step3.CreateTaskAsync("Task 3", CancellationToken.None); 369var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 386var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 411var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 486var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 686var task1 = await step.CreateTaskAsync("Task 1", CancellationToken.None); 687var task2 = await step.CreateTaskAsync("Task 2", CancellationToken.None); 745var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 780var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 934var task = await step.CreateTaskAsync(markdownStatusText, CancellationToken.None); 1008var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1037var task = await step.CreateTaskAsync(new MarkdownString("**Bold** task"), CancellationToken.None); 1054var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 1074var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1114var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1139var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1218var task = await step.CreateTaskAsync("Test Task", CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (8)
24var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 59var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 62var result = await task.UpdateStatusAsync("Updated status", CancellationToken.None); 78var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 81var result = await task.SucceedAsync("Success message", CancellationToken.None); 96var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 99var result = await task.WarnAsync("Warning message", CancellationToken.None); 114var task = await step.CreateTaskAsync("Initial status", CancellationToken.None);
tests\Shared\TestPipelineActivityReporter.cs (3)
187public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 195return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 226public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Pipelines.AppHost (2)
AppHost.cs (2)
65var assignRoleTask = await context.ReportingStep 264var uploadTask = await deployingContext.ReportingStep
Pipelines.Library (3)
DistributedApplicationPipelineExtensions.cs (3)
66var publishTask = await context.ReportingStep.CreateTaskAsync($"Publishing {projectResource.Name}", cancellationToken).ConfigureAwait(false); 110var zipTask = await context.ReportingStep.CreateTaskAsync($"Creating deployment package", cancellationToken).ConfigureAwait(false); 122var uploadTask = await context.ReportingStep.CreateTaskAsync($"Uploading to {projectResource.Name}", cancellationToken).ConfigureAwait(false);
SimplePipelines.AppHost (3)
AppHost.cs (3)
10var task = await context.ReportingStep 28var task = await context.ReportingStep 46var task = await context.ReportingStep