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