6 implementations of IReportingStep
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
38
internal sealed class NullPublishingStep :
IReportingStep
Pipelines\ReportingStep.cs (1)
16
internal sealed class ReportingStep :
IReportingStep
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
160
private sealed class TestReportingStep :
IReportingStep
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
160
private sealed class TestReportingStep :
IReportingStep
Aspire.Hosting.Tests (2)
Pipelines\PipelineLoggerProviderTests.cs (1)
125
public class FakeReportingStep :
IReportingStep
tests\Shared\TestPipelineActivityReporter.cs (1)
160
private sealed class TestReportingStep :
IReportingStep
100 references to IReportingStep
Aspire.Hosting (32)
Ats\AtsTypeMappings.cs (1)
59
[assembly: AspireExport(typeof(
IReportingStep
))]
Ats\PipelineExports.cs (6)
36
public static Task<IReportingTask> CreateTask(this
IReportingStep
reportingStep, string statusText, CancellationToken cancellationToken = default)
48
public static Task<IReportingTask> CreateMarkdownTask(this
IReportingStep
reportingStep, string markdownString, CancellationToken cancellationToken = default)
60
public static void LogStep(this
IReportingStep
reportingStep, string level, string message)
73
public static void LogStepMarkdown(this
IReportingStep
reportingStep, string level, string markdownString)
86
public static Task CompleteStep(this
IReportingStep
reportingStep, string completionText, string completionState = "completed", CancellationToken cancellationToken = default)
98
public static Task CompleteStepMarkdown(this
IReportingStep
reportingStep, string markdownString, string completionState = "completed", CancellationToken cancellationToken = default)
Pipelines\DistributedApplicationPipeline.cs (1)
644
var
reportingStep = await activityReporter.CreateStepAsync(step.Name, context.CancellationToken).ConfigureAwait(false);
Pipelines\IPipelineActivityReporter.cs (1)
20
Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default);
Pipelines\NullPipelineActivityReporter.cs (2)
18
public Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default)
20
return Task.FromResult<
IReportingStep
>(new NullPublishingStep());
Pipelines\PipelineActivityReporter.cs (1)
41
public async Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default)
Pipelines\PipelineLoggerProvider.cs (4)
25
public static
IReportingStep
? CurrentStep
57
public
IReportingStep
? Step;
68
private sealed class StepLogger(Func<
IReportingStep
?> currentStepAccessor, PipelineLoggingOptions options) : ILogger
81
var
step = currentStepAccessor();
Pipelines\PipelineStepContext.cs (2)
30
/// The <see cref="
IReportingStep
"/> instance that can be used to create tasks and manage the publishing process for this step.
32
public required
IReportingStep
ReportingStep { get; init; }
Publishing\PipelineExecutor.cs (1)
44
var
step = await pipelineActivityReporter.CreateStepAsync("pipeline-execution", stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (13)
11
/// Extension methods for <see cref="
IReportingStep
"/> and <see cref="IReportingTask"/> to provide direct operations.
23
public static async Task<
IReportingStep
> SucceedAsync(
24
this
IReportingStep
step,
40
public static async Task<
IReportingStep
> SucceedAsync(
41
this
IReportingStep
step,
56
public static async Task<
IReportingStep
> WarnAsync(
57
this
IReportingStep
step,
73
public static async Task<
IReportingStep
> WarnAsync(
74
this
IReportingStep
step,
89
public static async Task<
IReportingStep
> FailAsync(
90
this
IReportingStep
step,
106
public static async Task<
IReportingStep
> FailAsync(
107
this
IReportingStep
step,
Aspire.Hosting.Azure (7)
AzurePublishingContext.cs (3)
33
IReportingStep
reportingStep)
37
private
IReportingStep
ReportingStep => reportingStep;
116
private async Task WriteAzureArtifactsOutputAsync(
IReportingStep
step, DistributedApplicationModel model, AzureEnvironmentResource environment, CancellationToken cancellationToken)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
121
var
step = await activityReporter.CreateStepAsync(
220
var
step = await activityReporter.CreateStepAsync(
319
var
step = await activityReporter.CreateStepAsync(
414
var
step = await activityReporter.CreateStepAsync(
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestPipelineActivityReporter.cs (2)
148
public Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default)
157
return Task.FromResult<
IReportingStep
>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
31
IReportingStep
reportingStep,
Aspire.Hosting.Docker.Tests (2)
tests\Shared\TestPipelineActivityReporter.cs (2)
148
public Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default)
157
return Task.FromResult<
IReportingStep
>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Tests (55)
Pipelines\DistributedApplicationPipelineTests.cs (2)
1271
var capturedSteps = new List<
IReportingStep
?>();
1303
foreach (
var
step in capturedSteps)
Pipelines\PipelineLoggerProviderTests.cs (3)
19
var
currentStep = PipelineLoggerProvider.CurrentStep;
35
var
retrievedStep = PipelineLoggerProvider.CurrentStep;
58
var
retrievedStep = PipelineLoggerProvider.CurrentStep;
Publishing\PipelineActivityReporterTests.cs (41)
29
var
step = await reporter.CreateStepAsync(title, CancellationToken.None);
60
var
step = await reporter.CreateStepAsync("Parent Step", CancellationToken.None);
112
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
131
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
162
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
193
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
197
var
dummyStep = await reporter.CreateStepAsync("Dummy Step", CancellationToken.None);
215
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
234
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
269
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
331
var
step1 = await reporter.CreateStepAsync("Step 1", CancellationToken.None);
332
var
step2 = await reporter.CreateStepAsync("Step 2", CancellationToken.None);
333
var
step3 = await reporter.CreateStepAsync("Step 3", CancellationToken.None);
368
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
385
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
410
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
435
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
460
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
485
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
516
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
642
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
657
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
685
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
719
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
744
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
779
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
909
var
step = await reporter.CreateStepAsync(markdownTitle, CancellationToken.None);
930
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
956
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
987
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1007
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1033
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1053
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1073
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1093
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1113
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1138
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1163
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1187
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1217
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
1248
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (7)
21
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
40
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
43
var
result = await step.SucceedAsync("Success message", CancellationToken.None);
58
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
77
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
95
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
113
await using
var
step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
tests\Shared\TestPipelineActivityReporter.cs (2)
148
public Task<
IReportingStep
> CreateStepAsync(string title, CancellationToken cancellationToken = default)
157
return Task.FromResult<
IReportingStep
>(new TestReportingStep(this, title, _testOutputHelper));
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
37
var
reporter = context.ReportingStep;