13 implementations of IReportingStep
Aspire.Hosting (2)
Pipelines\NullPipelineActivityReporter.cs (1)
33internal sealed class NullPublishingStep : IReportingStep
Pipelines\ReportingStep.cs (1)
12internal sealed class ReportingStep : IReportingStep
Aspire.Hosting.Azure.EntraId.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Azure.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Go.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Java.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Rust.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Tests (2)
Pipelines\PipelineLoggerProviderTests.cs (1)
123public class FakeReportingStep : IReportingStep
tests\Shared\TestPipelineActivityReporter.cs (1)
176private sealed class TestReportingStep : IReportingStep
163 references to IReportingStep
Aspire.Hosting (35)
Ats\AtsTypeMappings.cs (1)
71[assembly: AspireExport(typeof(IReportingStep))]
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) 97public static void LogStep(this IReportingStep reportingStep, string level, string message) 110public static void LogStepMarkdown(this IReportingStep reportingStep, string level, string markdownString) 123public static Task CompleteStep(this IReportingStep reportingStep, string completionText, string completionState = "completed", CancellationToken cancellationToken = default) 135public static Task CompleteStepMarkdown(this IReportingStep reportingStep, string markdownString, string completionState = "completed", CancellationToken cancellationToken = default)
Pipelines\DistributedApplicationPipeline.cs (2)
855var reportingStep = await activityReporter.CreateStepAsync(step.Name, stepHierarchy.ParentStepName, stepHierarchy.Level, context.CancellationToken).ConfigureAwait(false); 966var reportingStep = await activityReporter.CreateStepAsync(step.Name, stepHierarchy.ParentStepName, stepHierarchy.Level, context.CancellationToken).ConfigureAwait(false);
Pipelines\IPipelineActivityReporter.cs (2)
17Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default); 27Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default)
Pipelines\NullPipelineActivityReporter.cs (2)
14public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 16return Task.FromResult<IReportingStep>(new NullPublishingStep());
Pipelines\PipelineActivityReporter.cs (2)
55public async Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 60public async Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default)
Pipelines\PipelineLoggerProvider.cs (4)
23public static IReportingStep? CurrentStep 55public IReportingStep? Step; 66private sealed class StepLogger(Func<IReportingStep?> currentStepAccessor, PipelineLoggingOptions options) : ILogger 79var step = currentStepAccessor();
Pipelines\PipelineStepContext.cs (2)
28/// The <see cref="IReportingStep"/> instance that can be used to create tasks and manage the publishing process for this step. 30public required IReportingStep ReportingStep { get; init; }
Publishing\PipelineExecutor.cs (1)
50var step = await pipelineActivityReporter.CreateStepAsync("pipeline-execution", stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (13)
7/// Extension methods for <see cref="IReportingStep"/> and <see cref="IReportingTask"/> to provide direct operations. 19public static async Task<IReportingStep> SucceedAsync( 20this IReportingStep step, 36public static async Task<IReportingStep> SucceedAsync( 37this IReportingStep step, 52public static async Task<IReportingStep> WarnAsync( 53this IReportingStep step, 69public static async Task<IReportingStep> WarnAsync( 70this IReportingStep step, 85public static async Task<IReportingStep> FailAsync( 86this IReportingStep step, 102public static async Task<IReportingStep> FailAsync( 103this IReportingStep step,
Aspire.Hosting.Azure (7)
AzurePublishingContext.cs (3)
30IReportingStep reportingStep) 34private IReportingStep ReportingStep => reportingStep; 133private async Task WriteAzureArtifactsOutputAsync(IReportingStep step, DistributedApplicationModel model, AzureEnvironmentResource environment, CancellationToken cancellationToken)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
151var step = await activityReporter.CreateStepAsync( 250var step = await activityReporter.CreateStepAsync( 349var step = await activityReporter.CreateStepAsync( 444var step = await activityReporter.CreateStepAsync(
Aspire.Hosting.Azure.EntraId.Tests (11)
EntraIdApiProvisioningTests.cs (1)
730await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing Entra registrations");
EntraIdProvisioningTests.cs (6)
623await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing sign-in-only registration"); 646await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing tenant suffix"); 671await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing shared tenant suffix"); 704await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing endpoint redirect URI"); 735await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing federated credential"); 776await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing Entra registrations");
EntraIdStarterScenarioPublishTests.cs (1)
59await using var step = await new TestPipelineActivityReporter(outputHelper).CreateStepAsync("Publishing the starter with Entra");
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Azure.Kubernetes.Tests (7)
AzureKubernetesInfrastructureTests.cs (4)
1420await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1510await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1723await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1793await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Azure.Tests (23)
AzureContainerAppExpressEndpointTests.cs (1)
388await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("summary");
AzureEnvironmentResourceExtensionsTests.cs (1)
846await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
AzureEnvironmentResourceTests.cs (1)
390var step = await new TestPipelineActivityReporter(output).CreateStepAsync("Publishing Azure resources");
AzureSandboxesTests.cs (17)
67await using var firstReportingStep = await new NullPublishingActivityReporter().CreateStepAsync("first"); 73await using var secondReportingStep = await new NullPublishingActivityReporter().CreateStepAsync("second"); 114await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("summary"); 1052await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1084await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1122await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1191await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1238await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2671await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2794await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2953await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2988await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3025await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3180await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3235await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3268await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3369await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
30IReportingStep reportingStep,
Aspire.Hosting.Docker.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Foundry.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Go.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Java.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Kubernetes.Tests (5)
CertManagerTests.cs (1)
92await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("cleanup");
PipelineStepTestHelpers.cs (1)
44await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync(step.Name);
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Rust.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Tests (58)
Pipelines\CorePipelineApiTests.cs (1)
29[InlineData(typeof(IReportingStep))]
Pipelines\DistributedApplicationPipelineTests.cs (2)
1317var capturedSteps = new List<IReportingStep?>(); 1349foreach (var step in capturedSteps)
Pipelines\PipelineLoggerProviderTests.cs (3)
17var currentStep = PipelineLoggerProvider.CurrentStep; 33var retrievedStep = PipelineLoggerProvider.CurrentStep; 56var retrievedStep = PipelineLoggerProvider.CurrentStep;
Publishing\PipelineActivityReporterTests.cs (42)
29var step = await reporter.CreateStepAsync(title, CancellationToken.None); 59var step = await reporter.CreateStepAsync("Child Step", "parent-step-id", 2, CancellationToken.None); 108var step = await reporter.CreateStepAsync("Parent Step", CancellationToken.None); 160var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 179var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 210var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 241var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 245var dummyStep = await reporter.CreateStepAsync("Dummy Step", CancellationToken.None); 263var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 282var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 317var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 379var step1 = await reporter.CreateStepAsync("Step 1", CancellationToken.None); 380var step2 = await reporter.CreateStepAsync("Step 2", CancellationToken.None); 381var step3 = await reporter.CreateStepAsync("Step 3", CancellationToken.None); 416var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 433var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 458var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 483var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 508var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 533var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 564await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 754var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 769var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 797var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 831var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 856var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 891var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1021var step = await reporter.CreateStepAsync(markdownTitle, CancellationToken.None); 1042var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1068var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1099var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1119var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1145var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1165var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1185var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1205var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1225var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1250var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1275var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1299var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1329var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1360var 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 (3)
155public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 159public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 173return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
34var reporter = context.ReportingStep;