3 implementations of IReportingTask
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
55internal sealed class NullPublishingTask : IReportingTask
Pipelines\ReportingTask.cs (1)
14internal sealed class ReportingTask : IReportingTask
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
1420private sealed class TestReportingTask : IReportingTask
65 references to IReportingTask
Aspire.Hosting (13)
Pipelines\IReportingStep.cs (1)
21Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default);
Pipelines\NullPipelineActivityReporter.cs (2)
33public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 35return Task.FromResult<IReportingTask>(new NullPublishingTask());
Pipelines\ReportingStep.cs (1)
99public async Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default)
Publishing\PublishingExtensions.cs (9)
11/// Extension methods for <see cref="IReportingStep"/> and <see cref="IReportingTask"/> to provide direct operations. 74public static async Task<IReportingTask> UpdateStatusAsync( 75this IReportingTask task, 90public static async Task<IReportingTask> SucceedAsync( 91this IReportingTask task, 106public static async Task<IReportingTask> WarnAsync( 107this IReportingTask task, 122public static async Task<IReportingTask> FailAsync( 123this IReportingTask task,
Aspire.Hosting.Azure (11)
AzureBicepResource.cs (1)
318var resourceTask = await context.ReportingStep
AzureEnvironmentResourceHelpers.cs (2)
40var loginTask = await context.ReportingStep.CreateTaskAsync($"Logging in to **{registryName}**", context.CancellationToken).ConfigureAwait(false); 80var pushTask = await context.ReportingStep.CreateTaskAsync($"Pushing **{resource.Name}** to **{registryName}**", context.CancellationToken).ConfigureAwait(false);
AzurePublishingContext.cs (4)
91var writeTask = await ReportingStep.CreateTaskAsync("Writing Azure Bicep templates", cancellationToken).ConfigureAwait(false); 222var computeEnvironmentTask = await step.CreateTaskAsync( 234var task = await step.CreateTaskAsync( 329var 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.Tests (2)
AzureDeployerTests.cs (2)
1406public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 1410return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _output));
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentResource.cs (2)
209var deployTask = await context.ReportingStep.CreateTaskAsync($"Running docker compose up for **{Name}**", context.CancellationToken).ConfigureAwait(false); 276var deployTask = await context.ReportingStep.CreateTaskAsync($"Running docker compose down for **{Name}**", context.CancellationToken).ConfigureAwait(false);
DockerComposePublishingContext.cs (1)
139var writeTask = await reportingStep.CreateTaskAsync(
Aspire.Hosting.Tests (31)
Pipelines\PipelineLoggerProviderTests.cs (1)
130public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default)
Publishing\PipelineActivityReporterTests.cs (22)
66var task = await step.CreateTaskAsync(statusText, CancellationToken.None); 162var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 193var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 215var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 234var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 269var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 334var task1 = await step1.CreateTaskAsync("Task 1", CancellationToken.None); 338var task2 = await step2.CreateTaskAsync("Task 2", CancellationToken.None); 342var task3 = await step3.CreateTaskAsync("Task 3", CancellationToken.None); 368var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 385var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 410var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 485var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 685var task1 = await step.CreateTaskAsync("Task 1", CancellationToken.None); 686var task2 = await step.CreateTaskAsync("Task 2", CancellationToken.None); 744var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 779var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 882var task = await step.CreateTaskAsync(markdownStatusText, CancellationToken.None); 956var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 983var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1008var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1087var task = await step.CreateTaskAsync("Test Task", CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (8)
23var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 58var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 61var result = await task.UpdateStatusAsync("Updated status", CancellationToken.None); 77var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 80var result = await task.SucceedAsync("Success message", CancellationToken.None); 95var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 98var result = await task.WarnAsync("Warning message", CancellationToken.None); 113var task = await step.CreateTaskAsync("Initial status", CancellationToken.None);
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);