1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingStep.cs (1)
19
Id
= id;
28 references to Id
Aspire.Hosting (10)
Pipelines\PipelineActivityReporter.cs (10)
45
Id = step.
Id
,
67
_steps.TryAdd(step.
Id
, step);
68
_stepIdsByTitle[title] = step.
Id
;
82
if (!_steps.TryGetValue(step.
Id
, out var parentStep))
84
throw new InvalidOperationException($"Step with ID '{step.
Id
}' does not exist.");
91
throw new InvalidOperationException($"Cannot create task for step '{step.
Id
}' because the step is already complete.");
95
var task = new ReportingTask(Guid.NewGuid().ToString(), step.
Id
, statusText, parentStep);
108
StepId = step.
Id
,
175
if (!_steps.TryGetValue(step.
Id
, out var parentStep))
196
StepId = step.
Id
,
Aspire.Hosting.Tests (18)
Publishing\PipelineActivityReporterTests.cs (17)
34
Assert.NotNull(stepInternal.
Id
);
35
Assert.NotEmpty(stepInternal.
Id
);
44
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
92
Assert.Equal(parentStep.
Id
, childStep.ParentStepId);
96
Assert.Equal(parentStep.
Id
, createActivity.Data.ParentStepId);
122
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);
133
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
168
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", exception.Message);
196
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
231
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
303
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
557
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", createException.Message);
785
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
819
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
877
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
912
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
1083
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
30
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);