1 write to Id
Aspire.Hosting (1)
Publishing\PublishingTask.cs (1)
18
Id
= id;
20 references to Id
Aspire.Hosting (7)
Publishing\PublishingActivityReporter.cs (6)
82
Id = task.
Id
,
133
throw new InvalidOperationException($"Cannot update task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
144
Id = task.
Id
,
163
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' with state '{task.CompletionState}'. Only 'InProgress' tasks can be completed.");
170
throw new InvalidOperationException($"Cannot complete task '{task.
Id
}' because its parent step '{task.StepId}' is already complete.");
182
Id = task.
Id
,
Publishing\PublishingStep.cs (1)
68
_tasks.TryAdd(task.
Id
, task);
Aspire.Hosting.Tests (13)
Publishing\PublishingActivityReporterTests.cs (13)
70
Assert.NotNull(taskInternal.
Id
);
71
Assert.NotEmpty(taskInternal.
Id
);
81
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
179
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
198
var invalidTask = new PublishingTask(taskInternal.
Id
, "non-existent-step", "Initial status", dummyStepInternal);
222
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", exception.Message);
252
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
276
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' because its parent step", exception.Message);
394
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' with state 'Completed'. Only 'InProgress' tasks can be completed.", exception.Message);
436
Assert.Contains($"Cannot update task '{taskInternal.
Id
}' because its parent step", updateException.Message);
441
Assert.Contains($"Cannot complete task '{taskInternal.
Id
}' with state 'Completed'. Only 'InProgress' tasks can be completed.", completeException.Message);
662
Assert.Equal(taskInternal.
Id
, activity.Data.Id);
697
Assert.Equal(taskInternal.
Id
, activity.Data.Id);