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)
107
Id = task.
Id
,
153
throw new InvalidOperationException($"Cannot update task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
164
Id = task.
Id
,
225
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
237
Id = task.
Id
,
Pipelines\ReportingStep.cs (1)
81
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (11)
Publishing\PipelineActivityReporterTests.cs (11)
122
Assert.NotNull(taskInternal.
Id
);
123
Assert.NotEmpty(taskInternal.
Id
);
133
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
231
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
250
var invalidTask = new ReportingTask(taskInternal.
Id
, "non-existent-step", "Initial status", dummyStepInternal);
274
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", exception.Message);
304
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
328
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' because its parent step", exception.Message);
549
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
878
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
913
Assert.Equal(taskInternal.
Id
, activity.Data.Id);