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
,
118
Id = step.
Id
,
164
if (!_steps.TryGetValue(step.
Id
, out var parentStep))
185
StepId = step.
Id
,
Aspire.Hosting.Tests (16)
Publishing\PipelineActivityReporterTests.cs (15)
34
Assert.NotNull(stepInternal.
Id
);
35
Assert.NotEmpty(stepInternal.
Id
);
44
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
74
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);
85
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
120
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", exception.Message);
148
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
183
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
255
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
509
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", createException.Message);
673
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
707
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
765
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
800
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
971
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
30
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);