10 implementations of IReportingTask
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
78internal sealed class NullPublishingTask : IReportingTask
Pipelines\ReportingTask.cs (1)
9internal sealed class ReportingTask : IReportingTask
Aspire.Hosting.Azure.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Java.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Rust.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
255private sealed class TestReportingTask : IReportingTask
131 references to IReportingTask
Aspire.Hosting (34)
Ats\AtsTypeMappings.cs (1)
72[assembly: AspireExport(typeof(IReportingTask))]
Ats\PipelineExports.cs (6)
73public static Task<IReportingTask> CreateTask(this IReportingStep reportingStep, string statusText, CancellationToken cancellationToken = default) 85public static Task<IReportingTask> CreateMarkdownTask(this IReportingStep reportingStep, string markdownString, CancellationToken cancellationToken = default) 147public static Task UpdateTask(this IReportingTask reportingTask, string statusText, CancellationToken cancellationToken = default) 159public static Task UpdateTaskMarkdown(this IReportingTask reportingTask, string markdownString, CancellationToken cancellationToken = default) 171public static Task CompleteTask(this IReportingTask reportingTask, string? completionMessage = null, string completionState = "completed", CancellationToken cancellationToken = default) 182public static Task CompleteTaskMarkdown(this IReportingTask reportingTask, string markdownString, string completionState = "completed", CancellationToken cancellationToken = default)
Pipelines\IReportingStep.cs (2)
19Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default); 27Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default);
Pipelines\NullPipelineActivityReporter.cs (4)
35public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 37return Task.FromResult<IReportingTask>(new NullPublishingTask()); 40public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default) 42return Task.FromResult<IReportingTask>(new NullPublishingTask());
Pipelines\PipelineStepHelpers.cs (2)
67var tagTask = await context.ReportingStep.CreateTaskAsync( 113var pushTask = await context.ReportingStep.CreateTaskAsync(
Pipelines\ReportingStep.cs (2)
102public async Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 113public async Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Publishing\PublishingExtensions.cs (17)
7/// Extension methods for <see cref="IReportingStep"/> and <see cref="IReportingTask"/> to provide direct operations. 118public static async Task<IReportingTask> UpdateStatusAsync( 119this IReportingTask task, 134public static async Task<IReportingTask> UpdateStatusAsync( 135this IReportingTask task, 150public static async Task<IReportingTask> SucceedAsync( 151this IReportingTask task, 166public static async Task<IReportingTask> SucceedAsync( 167this IReportingTask task, 182public static async Task<IReportingTask> WarnAsync( 183this IReportingTask task, 198public static async Task<IReportingTask> WarnAsync( 199this IReportingTask task, 214public static async Task<IReportingTask> FailAsync( 215this IReportingTask task, 230public static async Task<IReportingTask> FailAsync( 231this IReportingTask task,
Aspire.Hosting.Azure (11)
AzureBicepResource.cs (1)
341var resourceTask = await context.ReportingStep
AzureEnvironmentResource.cs (2)
278var discoveryTask = await context.ReportingStep.CreateTaskAsync( 354var deleteTask = await context.ReportingStep.CreateTaskAsync(
AzurePublishingContext.cs (4)
110var writeTask = await ReportingStep.CreateTaskAsync("Writing Azure Bicep templates", cancellationToken).ConfigureAwait(false); 326var computeEnvironmentTask = await step.CreateTaskAsync( 338var task = await step.CreateTaskAsync( 429var task = await step.CreateTaskAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
125var task = await step.CreateTaskAsync("Fetching available tenants", cancellationToken).ConfigureAwait(false); 224var task = await step.CreateTaskAsync("Fetching available subscriptions", cancellationToken).ConfigureAwait(false); 323var task = await step.CreateTaskAsync("Fetching resource groups", cancellationToken).ConfigureAwait(false); 418var task = await step.CreateTaskAsync("Fetching supported regions", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryHelpers.cs (1)
32var loginTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
231var getCredsTask = await context.ReportingStep.CreateTaskAsync( 512var applyTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Azure.Kubernetes.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (5)
299var diskTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox disk image for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 326var createTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 343var lifecycleTask = await context.ReportingStep.CreateTaskAsync($"Configuring lifecycle for {resource.Name}", context.CancellationToken).ConfigureAwait(false); 358var exposeTask = await context.ReportingStep.CreateTaskAsync($"Exposing sandbox port {endpoint.TargetPort}", context.CancellationToken).ConfigureAwait(false); 1427var cleanupTask = await context.ReportingStep.CreateTaskAsync($"Deleting stale sandbox deployment {sectionName}", context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (3)
172var deployTask = await ctx.ReportingStep.CreateTaskAsync( 439var deployTask = await context.ReportingStep.CreateTaskAsync( 485var deployTask = await context.ReportingStep.CreateTaskAsync(
DockerComposePublishingContext.cs (1)
133var writeTask = await reportingStep.CreateTaskAsync(
Aspire.Hosting.Docker.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Foundry.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Java.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
254var prepareTask = await context.ReportingStep.CreateTaskAsync( 423var deployTask = await context.ReportingStep.CreateTaskAsync( 600var uninstallTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Kubernetes.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Radius (2)
Publishing\RadiusBicepPublishingContext.cs (1)
57var task = await context.ReportingStep.CreateTaskAsync(
Publishing\RadiusDeploymentPipelineStep.cs (1)
537var deployTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Rust.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (39)
Pipelines\CorePipelineApiTests.cs (1)
30[InlineData(typeof(IReportingTask))]
Pipelines\PipelineLoggerProviderTests.cs (2)
129public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 134public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Publishing\PipelineActivityReporterTests.cs (25)
115var task = await step.CreateTaskAsync(statusText, CancellationToken.None); 211var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 242var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 264var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 283var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 318var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 383var task1 = await step1.CreateTaskAsync("Task 1", CancellationToken.None); 387var task2 = await step2.CreateTaskAsync("Task 2", CancellationToken.None); 391var task3 = await step3.CreateTaskAsync("Task 3", CancellationToken.None); 417var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 434var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 459var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 534var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 798var task1 = await step.CreateTaskAsync("Task 1", CancellationToken.None); 799var task2 = await step.CreateTaskAsync("Task 2", CancellationToken.None); 857var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 892var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1046var task = await step.CreateTaskAsync(markdownStatusText, CancellationToken.None); 1120var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1149var task = await step.CreateTaskAsync(new MarkdownString("**Bold** task"), CancellationToken.None); 1166var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 1186var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1226var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1251var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1330var 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)
203public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 211return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 242public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Pipelines.AppHost (2)
AppHost.cs (2)
63var assignRoleTask = await context.ReportingStep 262var uploadTask = await deployingContext.ReportingStep
Pipelines.Library (3)
DistributedApplicationPipelineExtensions.cs (3)
63var publishTask = await context.ReportingStep.CreateTaskAsync($"Publishing {projectResource.Name}", cancellationToken).ConfigureAwait(false); 107var zipTask = await context.ReportingStep.CreateTaskAsync($"Creating deployment package", cancellationToken).ConfigureAwait(false); 119var uploadTask = await context.ReportingStep.CreateTaskAsync($"Uploading to {projectResource.Name}", cancellationToken).ConfigureAwait(false);
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
134var certTask = await reporter.CreateTaskAsync($"Processing {certFiles.Count} certificate file(s)");
SimplePipelines.AppHost (3)
AppHost.cs (3)
8var task = await context.ReportingStep 26var task = await context.ReportingStep 44var task = await context.ReportingStep