1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingStep.cs (1)
22
Id
= id;
25 references to Id
Aspire.Hosting (9)
Pipelines\PipelineActivityReporter.cs (9)
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
105
throw new InvalidOperationException($"Cannot complete step '{step.
Id
}' with state '{step.CompletionState}'. Only 'InProgress' steps can be completed.");
117
Id = 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);
414
Assert.Contains($"Cannot complete step '{stepInternal.
Id
}' with state 'Completed'. Only 'InProgress' steps can be completed.", exception.Message);
448
Assert.Contains($"Cannot create task for step '{stepInternal.
Id
}' because the step is already complete.", createException.Message);
612
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
646
Assert.Equal(stepInternal.
Id
, activity.Data.Id);
704
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
739
Assert.Equal(stepInternal.
Id
, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
29
Assert.Equal(stepInternal.
Id
, taskInternal.StepId);