1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingTask.cs (1)
13
Id
= id;
17 references to Id
Aspire.Hosting (6)
Pipelines\PipelineActivityReporter.cs (5)
105
Id = task.
Id
,
151
throw new InvalidOperationException($"Cannot update task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
162
Id = task.
Id
,
223
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
235
Id = task.
Id
,
Pipelines\ReportingStep.cs (1)
77
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (11)
Publishing\PipelineActivityReporterTests.cs (11)
120
Assert.NotNull(taskInternal.
Id
);
121
Assert.NotEmpty(taskInternal.
Id
);
131
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
229
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
248
var invalidTask = new ReportingTask(taskInternal.
Id
, "non-existent-step", "Initial status", dummyStepInternal);
272
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", exception.Message);
302
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
326
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' because its parent step", exception.Message);
547
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
876
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
911
Assert.Equal(taskInternal.
Id
, activity.Data.Id);