3 implementations of IReportingTask
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
49internal sealed class NullPublishingTask : IReportingTask
Pipelines\ReportingTask.cs (1)
14internal sealed class ReportingTask : IReportingTask
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
1247private sealed class TestReportingTask : IReportingTask
63 references to IReportingTask
Aspire.Hosting (19)
Pipelines\IReportingStep.cs (1)
20Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default);
Pipelines\NullPipelineActivityReporter.cs (2)
32public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 34return Task.FromResult<IReportingTask>(new NullPublishingTask());
Pipelines\ReportingStep.cs (1)
98public async Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default)
Publishing\Publisher.cs (2)
78var task = await step.CreateTaskAsync( 131var statePathTask = await step.CreateTaskAsync(
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,
Publishing\ResourceContainerImageBuilder.cs (4)
157var task = await step.CreateTaskAsync( 244var publishingTask = await CreateTaskAsync( 351var publishingTask = await CreateTaskAsync( 462private static async Task<IReportingTask?> CreateTaskAsync(
Aspire.Hosting.Azure (12)
AzureEnvironmentResource.cs (5)
210var resourceTask = await context.ReportingStep 352var resourceTask = await context.ReportingStep 445var loginTask = await context.ReportingStep.CreateTaskAsync($"Logging in to {registryName}", context.CancellationToken).ConfigureAwait(false); 460private static async Task AuthenticateToAcrHelper(IReportingTask loginTask, string registryName, CancellationToken cancellationToken, IProcessRunner processRunner, IConfiguration configuration) 526var pushTask = await context.ReportingStep.CreateTaskAsync($"Pushing {resource.Name} to {registryName}", context.CancellationToken).ConfigureAwait(false);
AzurePublishingContext.cs (4)
98var writeTask = await step.CreateTaskAsync("Writing Azure Bicep templates", cancellationToken).ConfigureAwait(false); 230var computeEnvironmentTask = await step.CreateTaskAsync( 242var task = await step.CreateTaskAsync( 337var task = await step.CreateTaskAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (3)
123var task = await step.CreateTaskAsync("Fetching available tenants", cancellationToken).ConfigureAwait(false); 222var task = await step.CreateTaskAsync("Fetching available subscriptions", cancellationToken).ConfigureAwait(false); 321var task = await step.CreateTaskAsync("Fetching supported regions", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (2)
1240public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 1243return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText));
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
157var task = await step.CreateTaskAsync(
Aspire.Hosting.Tests (24)
Publishing\PipelineActivityReporterTests.cs (16)
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); 424var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 625var task1 = await step.CreateTaskAsync("Task 1", CancellationToken.None); 626var task2 = await step.CreateTaskAsync("Task 2", CancellationToken.None); 684var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 719var 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)
67var assignRoleTask = await context.ReportingStep 266var uploadTask = await deployingContext.ReportingStep
Pipelines.Library (3)
DistributedApplicationPipelineExtensions.cs (3)
68var publishTask = await context.ReportingStep.CreateTaskAsync($"Publishing {projectResource.Name}", cancellationToken).ConfigureAwait(false); 112var zipTask = await context.ReportingStep.CreateTaskAsync($"Creating deployment package", cancellationToken).ConfigureAwait(false); 124var uploadTask = await context.ReportingStep.CreateTaskAsync($"Uploading to {projectResource.Name}", cancellationToken).ConfigureAwait(false);