11 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.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.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
148 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)
853var reportingStep = await activityReporter.CreateStepAsync(step.Name, stepHierarchy.ParentStepName, stepHierarchy.Level, context.CancellationToken).ConfigureAwait(false); 964var 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)
29IReportingStep reportingStep) 33private IReportingStep ReportingStep => reportingStep; 132private async Task WriteAzureArtifactsOutputAsync(IReportingStep step, DistributedApplicationModel model, AzureEnvironmentResource environment, CancellationToken cancellationToken)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
117var step = await activityReporter.CreateStepAsync( 216var step = await activityReporter.CreateStepAsync( 315var step = await activityReporter.CreateStepAsync( 410var step = await activityReporter.CreateStepAsync(
Aspire.Hosting.Azure.Kubernetes.Tests (7)
AzureKubernetesInfrastructureTests.cs (4)
1392await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1482await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1695await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1765await 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)
384await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("summary");
AzureEnvironmentResourceExtensionsTests.cs (1)
547await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
AzureEnvironmentResourceTests.cs (1)
332var step = await new TestPipelineActivityReporter(output).CreateStepAsync("Publishing Azure resources");
AzureSandboxesTests.cs (17)
66await using var firstReportingStep = await new NullPublishingActivityReporter().CreateStepAsync("first"); 72await using var secondReportingStep = await new NullPublishingActivityReporter().CreateStepAsync("second"); 113await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("summary"); 1051await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1083await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1121await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1190await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1237await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2670await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2793await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2952await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2987await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3024await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3179await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3234await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3267await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 3368await 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.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 (4)
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)
1287var capturedSteps = new List<IReportingStep?>(); 1319foreach (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;