11 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.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Java.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Rust.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
Aspire.Hosting.Tests (2)
Pipelines\PipelineLoggerProviderTests.cs (1)
125public class FakeReportingStep : IReportingStep
tests\Shared\TestPipelineActivityReporter.cs (1)
178private sealed class TestReportingStep : IReportingStep
138 references to IReportingStep
Aspire.Hosting (35)
Ats\AtsTypeMappings.cs (1)
70[assembly: AspireExport(typeof(IReportingStep))]
Ats\PipelineExports.cs (6)
75public static Task<IReportingTask> CreateTask(this IReportingStep reportingStep, string statusText, CancellationToken cancellationToken = default) 87public static Task<IReportingTask> CreateMarkdownTask(this IReportingStep reportingStep, string markdownString, CancellationToken cancellationToken = default) 99public static void LogStep(this IReportingStep reportingStep, string level, string message) 112public static void LogStepMarkdown(this IReportingStep reportingStep, string level, string markdownString) 125public static Task CompleteStep(this IReportingStep reportingStep, string completionText, string completionState = "completed", CancellationToken cancellationToken = default) 137public static Task CompleteStepMarkdown(this IReportingStep reportingStep, string markdownString, string completionState = "completed", CancellationToken cancellationToken = default)
Pipelines\DistributedApplicationPipeline.cs (2)
897var reportingStep = await activityReporter.CreateStepAsync(step.Name, stepHierarchy.ParentStepName, stepHierarchy.Level, context.CancellationToken).ConfigureAwait(false); 1008var reportingStep = await activityReporter.CreateStepAsync(step.Name, stepHierarchy.ParentStepName, stepHierarchy.Level, context.CancellationToken).ConfigureAwait(false);
Pipelines\IPipelineActivityReporter.cs (2)
20Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default); 30Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, 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 (2)
57public async Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 62public async Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, 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)
53var 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. 24public static async Task<IReportingStep> SucceedAsync( 25this IReportingStep step, 41public static async Task<IReportingStep> SucceedAsync( 42this IReportingStep step, 57public static async Task<IReportingStep> WarnAsync( 58this IReportingStep step, 74public static async Task<IReportingStep> WarnAsync( 75this IReportingStep step, 90public static async Task<IReportingStep> FailAsync( 91this IReportingStep step, 107public static async Task<IReportingStep> FailAsync( 108this 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)
120var step = await activityReporter.CreateStepAsync( 219var step = await activityReporter.CreateStepAsync( 318var step = await activityReporter.CreateStepAsync( 413var step = await activityReporter.CreateStepAsync(
Aspire.Hosting.Azure.Kubernetes.Tests (7)
AzureKubernetesInfrastructureTests.cs (4)
442await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 531await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 743await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 812await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Azure.Tests (14)
AzureEnvironmentResourceExtensionsTests.cs (1)
550await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
AzureSandboxesTests.cs (10)
965await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 997await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1035await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1104await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 1151await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2461await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2612await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2667await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2700await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test"); 2798await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync("test");
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
31IReportingStep reportingStep,
Aspire.Hosting.Docker.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Foundry.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Java.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Kubernetes.Tests (4)
PipelineStepTestHelpers.cs (1)
46await using var reportingStep = await new NullPublishingActivityReporter().CreateStepAsync(step.Name);
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Rust.Tests (3)
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Aspire.Hosting.Tests (57)
Pipelines\DistributedApplicationPipelineTests.cs (2)
1289var capturedSteps = new List<IReportingStep?>(); 1321foreach (var step in capturedSteps)
Pipelines\PipelineLoggerProviderTests.cs (3)
19var currentStep = PipelineLoggerProvider.CurrentStep; 35var retrievedStep = PipelineLoggerProvider.CurrentStep; 58var retrievedStep = PipelineLoggerProvider.CurrentStep;
Publishing\PipelineActivityReporterTests.cs (42)
31var step = await reporter.CreateStepAsync(title, CancellationToken.None); 61var step = await reporter.CreateStepAsync("Child Step", "parent-step-id", 2, CancellationToken.None); 110var step = await reporter.CreateStepAsync("Parent Step", CancellationToken.None); 162var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 181var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 212var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 243var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 247var dummyStep = await reporter.CreateStepAsync("Dummy Step", CancellationToken.None); 265var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 284var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 319var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 381var step1 = await reporter.CreateStepAsync("Step 1", CancellationToken.None); 382var step2 = await reporter.CreateStepAsync("Step 2", CancellationToken.None); 383var step3 = await reporter.CreateStepAsync("Step 3", CancellationToken.None); 418var 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); 510var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 535var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 566await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 756var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 771var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 799var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 833var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 858var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 893var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1023var step = await reporter.CreateStepAsync(markdownTitle, CancellationToken.None); 1044var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1070var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1101var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1121var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1147var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1167var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1187var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1207var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1227var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1252var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1277var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1301var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1331var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 1362var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (7)
23await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 42await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 45var result = await step.SucceedAsync("Success message", CancellationToken.None); 60await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 79await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 97await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None); 115await using var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);
tests\Shared\TestPipelineActivityReporter.cs (3)
157public Task<IReportingStep> CreateStepAsync(string title, CancellationToken cancellationToken = default) 161public Task<IReportingStep> CreateStepAsync(string title, string? parentStepId, int hierarchyLevel, CancellationToken cancellationToken = default) 175return Task.FromResult<IReportingStep>(new TestReportingStep(this, title, _testOutputHelper));
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
36var reporter = context.ReportingStep;