1 write to Id
Aspire.Hosting (1)
Publishing\PublishingTask.cs (1)
18Id = id;
20 references to Id
Aspire.Hosting (7)
Publishing\PublishingActivityReporter.cs (6)
82Id = task.Id, 133throw new InvalidOperationException($"Cannot update task '{task.Id}' because its parent step '{task.StepId}' is already complete."); 144Id = task.Id, 163throw new InvalidOperationException($"Cannot complete task '{task.Id}' with state '{task.CompletionState}'. Only 'InProgress' tasks can be completed."); 170throw new InvalidOperationException($"Cannot complete task '{task.Id}' because its parent step '{task.StepId}' is already complete."); 182Id = task.Id,
Publishing\PublishingStep.cs (1)
68_tasks.TryAdd(task.Id, task);
Aspire.Hosting.Tests (13)
Publishing\PublishingActivityReporterTests.cs (13)
70Assert.NotNull(taskInternal.Id); 71Assert.NotEmpty(taskInternal.Id); 81Assert.Equal(taskInternal.Id, activity.Data.Id); 179Assert.Equal(taskInternal.Id, activity.Data.Id); 198var invalidTask = new PublishingTask(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal); 222Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", exception.Message); 252Assert.Equal(taskInternal.Id, activity.Data.Id); 276Assert.Contains($"Cannot complete task '{taskInternal.Id}' because its parent step", exception.Message); 394Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", exception.Message); 436Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", updateException.Message); 441Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", completeException.Message); 662Assert.Equal(taskInternal.Id, activity.Data.Id); 697Assert.Equal(taskInternal.Id, activity.Data.Id);