1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingTask.cs (1)
18Id = id;
20 references to Id
Aspire.Hosting (7)
Pipelines\PipelineActivityReporter.cs (6)
87Id = task.Id, 138throw new InvalidOperationException($"Cannot update task '{task.Id}' because its parent step '{task.StepId}' is already complete."); 149Id = task.Id, 168throw new InvalidOperationException($"Cannot complete task '{task.Id}' with state '{task.CompletionState}'. Only 'InProgress' tasks can be completed."); 175throw new InvalidOperationException($"Cannot complete task '{task.Id}' because its parent step '{task.StepId}' is already complete."); 187Id = task.Id,
Pipelines\ReportingStep.cs (1)
68_tasks.TryAdd(task.Id, task);
Aspire.Hosting.Tests (13)
Publishing\PipelineActivityReporterTests.cs (13)
71Assert.NotNull(taskInternal.Id); 72Assert.NotEmpty(taskInternal.Id); 82Assert.Equal(taskInternal.Id, activity.Data.Id); 180Assert.Equal(taskInternal.Id, activity.Data.Id); 199var invalidTask = new ReportingTask(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal); 223Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", exception.Message); 253Assert.Equal(taskInternal.Id, activity.Data.Id); 277Assert.Contains($"Cannot complete task '{taskInternal.Id}' because its parent step", exception.Message); 395Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", exception.Message); 437Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", updateException.Message); 442Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", completeException.Message); 703Assert.Equal(taskInternal.Id, activity.Data.Id); 738Assert.Equal(taskInternal.Id, activity.Data.Id);