2 instantiations of ReportingStep
Aspire.Hosting (1)
Pipelines\PipelineActivityReporter.cs (1)
66var step = new ReportingStep(this, Guid.NewGuid().ToString(), title, resolvedParentStepId, hierarchyLevel);
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
144var nonExistentStep = new ReportingStep(reporter, "non-existent-step", "Non-existent Step");
67 references to ReportingStep
Aspire.Hosting (13)
Pipelines\PipelineActivityReporter.cs (11)
16private readonly ConcurrentDictionary<string, ReportingStep> _steps = new(); 41private static PublishingActivityData CreateStepActivityData(ReportingStep step, string statusText, CompletionState completionState, bool enableMarkdown) 66var step = new ReportingStep(this, Guid.NewGuid().ToString(), title, resolvedParentStepId, hierarchyLevel); 80public async Task<ReportingTask> CreateTaskAsync(ReportingStep step, string statusText, bool enableMarkdown, CancellationToken cancellationToken) 82if (!_steps.TryGetValue(step.Id, out var parentStep)) 117public async Task CompleteStepAsync(ReportingStep step, string completionText, CompletionState completionState, bool enableMarkdown, CancellationToken cancellationToken) 142if (!_steps.TryGetValue(task.StepId, out var parentStep)) 173internal void Log(ReportingStep step, LogLevel logLevel, string message, bool enableMarkdown) 175if (!_steps.TryGetValue(step.Id, out var parentStep)) 208if (!_steps.TryGetValue(task.StepId, out var parentStep)) 299foreach (var step in _steps.Values)
Pipelines\ReportingTask.cs (2)
11internal ReportingTask(string id, string stepId, string statusText, ReportingStep parentStep) 32public ReportingStep ParentStep { get; }
Aspire.Hosting.Tests (54)
Pipelines\CorePipelineApiTests.cs (1)
37[InlineData(typeof(ReportingStep))]
Publishing\PipelineActivityReporterTests.cs (49)
33var stepInternal = Assert.IsType<ReportingStep>(step); 62var stepInternal = Assert.IsType<ReportingStep>(step); 83var parentStep = Assert.IsType<ReportingStep>(await reporter.CreateStepAsync("Parent Step", CancellationToken.None)); 89var childStep = Assert.IsType<ReportingStep>(await reporter.CreateStepAsync("Child Step", "Parent Step", 1, CancellationToken.None)); 109var stepInternal = Assert.IsType<ReportingStep>(step); 144var nonExistentStep = new ReportingStep(reporter, "non-existent-step", "Non-existent Step"); 167var stepInternal = Assert.IsType<ReportingStep>(step); 188var stepInternal = Assert.IsType<ReportingStep>(step); 222var stepInternal = Assert.IsType<ReportingStep>(step); 246var dummyStepInternal = Assert.IsType<ReportingStep>(dummyStep); 294var stepInternal = Assert.IsType<ReportingStep>(step); 497var stepInternal = Assert.IsType<ReportingStep>(step); 522var stepInternal = Assert.IsType<ReportingStep>(step); 556var stepInternal = Assert.IsType<ReportingStep>(step); 757var stepInternal = Assert.IsType<ReportingStep>(step); 778var stepInternal = Assert.IsType<ReportingStep>(step); 812var stepInternal = Assert.IsType<ReportingStep>(step); 844var stepInternal = Assert.IsType<ReportingStep>(step); 868var stepInternal = Assert.IsType<ReportingStep>(step); 903var stepInternal = Assert.IsType<ReportingStep>(step); 1025var stepInternal = Assert.IsType<ReportingStep>(step); 1069var stepInternal = Assert.IsType<ReportingStep>(step); 1289var stepInternal = Assert.IsType<ReportingStep>(step); 1313var stepInternal = Assert.IsType<ReportingStep>(step); 1374var stepInternal = Assert.IsType<ReportingStep>(step);
Publishing\PublishingExtensionsTests.cs (4)
28await using var stepInternal = Assert.IsType<ReportingStep>(step); 48await using var stepInternal = Assert.IsType<ReportingStep>(step);