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