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