1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingTask.cs (1)
18
Id
= id;
17 references to Id
Aspire.Hosting (6)
Pipelines\PipelineActivityReporter.cs (5)
87
Id = task.
Id
,
138
throw new InvalidOperationException($"Cannot update task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
149
Id = task.
Id
,
209
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
221
Id = task.
Id
,
Pipelines\ReportingStep.cs (1)
69
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (11)
Publishing\PipelineActivityReporterTests.cs (11)
71
Assert.NotNull(taskInternal.
Id
);
72
Assert.NotEmpty(taskInternal.
Id
);
82
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
180
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
199
var invalidTask = new ReportingTask(taskInternal.
Id
, "non-existent-step", "Initial status", dummyStepInternal);
223
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", exception.Message);
253
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
277
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' because its parent step", exception.Message);
498
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
763
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
798
Assert.Equal(taskInternal.
Id
, activity.Data.Id);