1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingStep.cs (1)
22Id = id;
25 references to Id
Aspire.Hosting (9)
Pipelines\PipelineActivityReporter.cs (9)
44_steps.TryAdd(step.Id, step); 51Id = step.Id, 64if (!_steps.TryGetValue(step.Id, out var parentStep)) 66throw new InvalidOperationException($"Step with ID '{step.Id}' does not exist."); 73throw new InvalidOperationException($"Cannot create task for step '{step.Id}' because the step is already complete."); 77var task = new ReportingTask(Guid.NewGuid().ToString(), step.Id, statusText, parentStep); 90StepId = step.Id 105throw new InvalidOperationException($"Cannot complete step '{step.Id}' with state '{step.CompletionState}'. Only 'InProgress' steps can be completed."); 117Id = step.Id,
Aspire.Hosting.Tests (16)
Publishing\PipelineActivityReporterTests.cs (15)
33Assert.NotNull(stepInternal.Id); 34Assert.NotEmpty(stepInternal.Id); 43Assert.Equal(stepInternal.Id, activity.Data.Id); 73Assert.Equal(stepInternal.Id, taskInternal.StepId); 84Assert.Equal(stepInternal.Id, activity.Data.StepId); 119Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", exception.Message); 147Assert.Equal(stepInternal.Id, activity.Data.Id); 182Assert.Equal(stepInternal.Id, activity.Data.StepId); 254Assert.Equal(stepInternal.Id, activity.Data.StepId); 414Assert.Contains($"Cannot complete step '{stepInternal.Id}' with state 'Completed'. Only 'InProgress' steps can be completed.", exception.Message); 448Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", createException.Message); 612Assert.Equal(stepInternal.Id, activity.Data.Id); 646Assert.Equal(stepInternal.Id, activity.Data.Id); 704Assert.Equal(stepInternal.Id, activity.Data.StepId); 739Assert.Equal(stepInternal.Id, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
29Assert.Equal(stepInternal.Id, taskInternal.StepId);