1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingStep.cs (1)
23
Id
= id;
26 references to Id
Aspire.Hosting (10)
Pipelines\PipelineActivityReporter.cs (10)
44
_steps.TryAdd(step.
Id
, step);
51
Id = step.
Id
,
64
if (!_steps.TryGetValue(step.
Id
, out var parentStep))
66
throw new InvalidOperationException($"Step with ID '{step.
Id
}' does not exist.");
73
throw new InvalidOperationException($"Cannot create task for step '{step.
Id
}' because the step is already complete.");
77
var task = new ReportingTask(Guid.NewGuid().ToString(), step.
Id
, statusText, parentStep);
90
StepId = step.
Id
117
Id = step.
Id
,
161
if (!_steps.TryGetValue(step.
Id
, out var parentStep))
182
StepId = step.
Id
,
Aspire.Hosting.Tests (16)
Publishing\PipelineActivityReporterTests.cs (15)
33
Assert.NotNull(stepInternal.
Id
);
34
Assert.NotEmpty(stepInternal.
Id
);
43
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
73
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);
84
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
119
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", exception.Message);
147
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
182
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
254
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
508
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", createException.Message);
672
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
706
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
764
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
799
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
919
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
29
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);