1 write to Id
Aspire.Hosting (1)
Publishing\PublishingStep.cs (1)
22Id = id;
25 references to Id
Aspire.Hosting (9)
Publishing\PublishingActivityReporter.cs (9)
39_steps.TryAdd(step.Id, step); 46Id = step.Id, 59if (!_steps.TryGetValue(step.Id, out var parentStep)) 61throw new InvalidOperationException($"Step with ID '{step.Id}' does not exist."); 68throw new InvalidOperationException($"Cannot create task for step '{step.Id}' because the step is already complete."); 72var task = new PublishingTask(Guid.NewGuid().ToString(), step.Id, statusText, parentStep); 85StepId = step.Id 100throw new InvalidOperationException($"Cannot complete step '{step.Id}' with state '{step.CompletionState}'. Only 'InProgress' steps can be completed."); 112Id = step.Id,
Aspire.Hosting.Tests (16)
Publishing\PublishingActivityReporterTests.cs (15)
32Assert.NotNull(stepInternal.Id); 33Assert.NotEmpty(stepInternal.Id); 42Assert.Equal(stepInternal.Id, activity.Data.Id); 72Assert.Equal(stepInternal.Id, taskInternal.StepId); 83Assert.Equal(stepInternal.Id, activity.Data.StepId); 118Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", exception.Message); 146Assert.Equal(stepInternal.Id, activity.Data.Id); 181Assert.Equal(stepInternal.Id, activity.Data.StepId); 253Assert.Equal(stepInternal.Id, activity.Data.StepId); 413Assert.Contains($"Cannot complete step '{stepInternal.Id}' with state 'Completed'. Only 'InProgress' steps can be completed.", exception.Message); 447Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", createException.Message); 571Assert.Equal(stepInternal.Id, activity.Data.Id); 605Assert.Equal(stepInternal.Id, activity.Data.Id); 663Assert.Equal(stepInternal.Id, activity.Data.StepId); 698Assert.Equal(stepInternal.Id, activity.Data.StepId);
Publishing\PublishingExtensionsTests.cs (1)
28Assert.Equal(stepInternal.Id, taskInternal.StepId);