2 instantiations of ReportingStep
Aspire.Hosting (1)
Pipelines\PipelineActivityReporter.cs (1)
68var step = new ReportingStep(this, Guid.NewGuid().ToString(), title, resolvedParentStepId, hierarchyLevel);
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
146var nonExistentStep = new ReportingStep(reporter, "non-existent-step", "Non-existent Step");
66 references to ReportingStep
Aspire.Hosting (13)
Pipelines\PipelineActivityReporter.cs (11)
18private readonly ConcurrentDictionary<string, ReportingStep> _steps = new(); 43private static PublishingActivityData CreateStepActivityData(ReportingStep step, string statusText, CompletionState completionState, bool enableMarkdown) 68var step = new ReportingStep(this, Guid.NewGuid().ToString(), title, resolvedParentStepId, hierarchyLevel); 82public async Task<ReportingTask> CreateTaskAsync(ReportingStep step, string statusText, bool enableMarkdown, CancellationToken cancellationToken) 84if (!_steps.TryGetValue(step.Id, out var parentStep)) 119public async Task CompleteStepAsync(ReportingStep step, string completionText, CompletionState completionState, bool enableMarkdown, CancellationToken cancellationToken) 144if (!_steps.TryGetValue(task.StepId, out var parentStep)) 175internal void Log(ReportingStep step, LogLevel logLevel, string message, bool enableMarkdown) 177if (!_steps.TryGetValue(step.Id, out var parentStep)) 210if (!_steps.TryGetValue(task.StepId, out var parentStep)) 301foreach (var step in _steps.Values)
Pipelines\ReportingTask.cs (2)
16internal ReportingTask(string id, string stepId, string statusText, ReportingStep parentStep) 37public ReportingStep ParentStep { get; }
Aspire.Hosting.Tests (53)
Publishing\PipelineActivityReporterTests.cs (49)
35var stepInternal = Assert.IsType<ReportingStep>(step); 64var stepInternal = Assert.IsType<ReportingStep>(step); 85var parentStep = Assert.IsType<ReportingStep>(await reporter.CreateStepAsync("Parent Step", CancellationToken.None)); 91var childStep = Assert.IsType<ReportingStep>(await reporter.CreateStepAsync("Child Step", "Parent Step", 1, CancellationToken.None)); 111var stepInternal = Assert.IsType<ReportingStep>(step); 146var nonExistentStep = new ReportingStep(reporter, "non-existent-step", "Non-existent Step"); 169var stepInternal = Assert.IsType<ReportingStep>(step); 190var stepInternal = Assert.IsType<ReportingStep>(step); 224var stepInternal = Assert.IsType<ReportingStep>(step); 248var dummyStepInternal = Assert.IsType<ReportingStep>(dummyStep); 296var stepInternal = Assert.IsType<ReportingStep>(step); 499var stepInternal = Assert.IsType<ReportingStep>(step); 524var stepInternal = Assert.IsType<ReportingStep>(step); 558var stepInternal = Assert.IsType<ReportingStep>(step); 759var stepInternal = Assert.IsType<ReportingStep>(step); 780var stepInternal = Assert.IsType<ReportingStep>(step); 814var stepInternal = Assert.IsType<ReportingStep>(step); 846var stepInternal = Assert.IsType<ReportingStep>(step); 870var stepInternal = Assert.IsType<ReportingStep>(step); 905var stepInternal = Assert.IsType<ReportingStep>(step); 1027var stepInternal = Assert.IsType<ReportingStep>(step); 1071var stepInternal = Assert.IsType<ReportingStep>(step); 1291var stepInternal = Assert.IsType<ReportingStep>(step); 1315var stepInternal = Assert.IsType<ReportingStep>(step); 1376var stepInternal = Assert.IsType<ReportingStep>(step);
Publishing\PublishingExtensionsTests.cs (4)
30await using var stepInternal = Assert.IsType<ReportingStep>(step); 50await using var stepInternal = Assert.IsType<ReportingStep>(step);