1 write to Id
Aspire.Hosting (1)
Pipelines\ReportingTask.cs (1)
18
Id
= id;
20 references to Id
Aspire.Hosting (7)
Pipelines\PipelineActivityReporter.cs (6)
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
,
168
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' with state '{task.CompletionState}'. Only 'InProgress' tasks can be completed.");
175
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
187
Id = task.
Id
,
Pipelines\ReportingStep.cs (1)
68
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (13)
Publishing\PipelineActivityReporterTests.cs (13)
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);
395
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' with state 'Completed'. Only 'InProgress' tasks can be completed.", exception.Message);
437
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
442
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' with state 'Completed'. Only 'InProgress' tasks can be completed.", completeException.Message);
703
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
738
Assert.Equal(taskInternal.
Id
, activity.Data.Id);