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