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