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
,
140
throw new InvalidOperationException($"Cannot update task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
151
Id = task.
Id
,
212
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
224
Id = task.
Id
,
Pipelines\ReportingStep.cs (1)
69
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (11)
Publishing\PipelineActivityReporterTests.cs (11)
72
Assert.NotNull(taskInternal.
Id
);
73
Assert.NotEmpty(taskInternal.
Id
);
83
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
181
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
200
var invalidTask = new ReportingTask(taskInternal.
Id
, "non-existent-step", "Initial status", dummyStepInternal);
224
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", exception.Message);
254
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
278
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' because its parent step", exception.Message);
499
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
764
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
799
Assert.Equal(taskInternal.
Id
, activity.Data.Id);