10 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.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Java.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Rust.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
Aspire.Hosting.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
257private sealed class TestReportingTask : IReportingTask
130 references to IReportingTask
Aspire.Hosting (34)
Ats\AtsTypeMappings.cs (1)
71[assembly: AspireExport(typeof(IReportingTask))]
Ats\PipelineExports.cs (6)
75public static Task<IReportingTask> CreateTask(this IReportingStep reportingStep, string statusText, CancellationToken cancellationToken = default) 87public static Task<IReportingTask> CreateMarkdownTask(this IReportingStep reportingStep, string markdownString, CancellationToken cancellationToken = default) 149public static Task UpdateTask(this IReportingTask reportingTask, string statusText, CancellationToken cancellationToken = default) 161public static Task UpdateTaskMarkdown(this IReportingTask reportingTask, string markdownString, CancellationToken cancellationToken = default) 173public static Task CompleteTask(this IReportingTask reportingTask, string? completionMessage = null, string completionState = "completed", CancellationToken cancellationToken = default) 184public 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)
106public async Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 117public 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. 123public static async Task<IReportingTask> UpdateStatusAsync( 124this IReportingTask task, 139public static async Task<IReportingTask> UpdateStatusAsync( 140this IReportingTask task, 155public static async Task<IReportingTask> SucceedAsync( 156this IReportingTask task, 171public static async Task<IReportingTask> SucceedAsync( 172this IReportingTask task, 187public static async Task<IReportingTask> WarnAsync( 188this IReportingTask task, 203public static async Task<IReportingTask> WarnAsync( 204this IReportingTask task, 219public static async Task<IReportingTask> FailAsync( 220this IReportingTask task, 235public static async Task<IReportingTask> FailAsync( 236this IReportingTask task,
Aspire.Hosting.Azure (11)
AzureBicepResource.cs (1)
345var resourceTask = await context.ReportingStep
AzureEnvironmentResource.cs (2)
282var discoveryTask = await context.ReportingStep.CreateTaskAsync( 358var deleteTask = await context.ReportingStep.CreateTaskAsync(
AzurePublishingContext.cs (4)
94var writeTask = await ReportingStep.CreateTaskAsync("Writing Azure Bicep templates", cancellationToken).ConfigureAwait(false); 310var computeEnvironmentTask = await step.CreateTaskAsync( 322var task = await step.CreateTaskAsync( 413var task = await step.CreateTaskAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
128var task = await step.CreateTaskAsync("Fetching available tenants", cancellationToken).ConfigureAwait(false); 227var task = await step.CreateTaskAsync("Fetching available subscriptions", cancellationToken).ConfigureAwait(false); 326var task = await step.CreateTaskAsync("Fetching resource groups", cancellationToken).ConfigureAwait(false); 421var task = await step.CreateTaskAsync("Fetching supported regions", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryHelpers.cs (1)
34var loginTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
212var getCredsTask = await context.ReportingStep.CreateTaskAsync( 348var applyTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Azure.Kubernetes.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (5)
281var diskTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox disk image for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 308var createTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 325var lifecycleTask = await context.ReportingStep.CreateTaskAsync($"Configuring lifecycle for {resource.Name}", context.CancellationToken).ConfigureAwait(false); 340var exposeTask = await context.ReportingStep.CreateTaskAsync($"Exposing sandbox port {endpoint.TargetPort}", context.CancellationToken).ConfigureAwait(false); 1387var cleanupTask = await context.ReportingStep.CreateTaskAsync($"Deleting stale sandbox deployment {sectionName}", context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (3)
174var deployTask = await ctx.ReportingStep.CreateTaskAsync( 413var deployTask = await context.ReportingStep.CreateTaskAsync( 459var deployTask = await context.ReportingStep.CreateTaskAsync(
DockerComposePublishingContext.cs (1)
134var writeTask = await reportingStep.CreateTaskAsync(
Aspire.Hosting.Docker.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Foundry.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Java.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
251var prepareTask = await context.ReportingStep.CreateTaskAsync( 420var deployTask = await context.ReportingStep.CreateTaskAsync( 587var uninstallTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Kubernetes.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public Task<IReportingTask> CreateTaskAsync(MarkdownString statusText, CancellationToken cancellationToken = default)
Aspire.Hosting.Radius (2)
Publishing\RadiusBicepPublishingContext.cs (1)
60var task = await context.ReportingStep.CreateTaskAsync(
Publishing\RadiusDeploymentPipelineStep.cs (1)
132var deployTask = await context.ReportingStep.CreateTaskAsync(
Aspire.Hosting.Rust.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public 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)
117var task = await step.CreateTaskAsync(statusText, CancellationToken.None); 213var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 244var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 266var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 285var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 320var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 385var task1 = await step1.CreateTaskAsync("Task 1", CancellationToken.None); 389var task2 = await step2.CreateTaskAsync("Task 2", CancellationToken.None); 393var task3 = await step3.CreateTaskAsync("Task 3", CancellationToken.None); 419var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 436var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 461var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 536var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 800var task1 = await step.CreateTaskAsync("Task 1", CancellationToken.None); 801var task2 = await step.CreateTaskAsync("Task 2", CancellationToken.None); 859var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 894var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1048var task = await step.CreateTaskAsync(markdownStatusText, CancellationToken.None); 1122var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1151var task = await step.CreateTaskAsync(new MarkdownString("**Bold** task"), CancellationToken.None); 1168var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 1188var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1228var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1253var task = await step.CreateTaskAsync("Test Task", CancellationToken.None); 1332var task = await step.CreateTaskAsync("Test Task", CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (8)
26var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 61var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 64var result = await task.UpdateStatusAsync("Updated status", CancellationToken.None); 80var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 83var result = await task.SucceedAsync("Success message", CancellationToken.None); 98var task = await step.CreateTaskAsync("Initial status", CancellationToken.None); 101var result = await task.WarnAsync("Warning message", CancellationToken.None); 116var task = await step.CreateTaskAsync("Initial status", CancellationToken.None);
tests\Shared\TestPipelineActivityReporter.cs (3)
205public Task<IReportingTask> CreateTaskAsync(string statusText, CancellationToken cancellationToken = default) 213return Task.FromResult<IReportingTask>(new TestReportingTask(_reporter, statusText, _testOutputHelper)); 244public 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);
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
136var certTask = await reporter.CreateTaskAsync($"Processing {certFiles.Count} certificate file(s)");
SimplePipelines.AppHost (3)
AppHost.cs (3)
10var task = await context.ReportingStep 28var task = await context.ReportingStep 46var task = await context.ReportingStep