2 instantiations of ReportingTask
Aspire.Hosting (1)
Pipelines\PipelineActivityReporter.cs (1)
77
var task = new
ReportingTask
(Guid.NewGuid().ToString(), step.Id, statusText, parentStep);
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
199
var invalidTask = new
ReportingTask
(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal);
41 references to ReportingTask
Aspire.Hosting (8)
Pipelines\PipelineActivityReporter.cs (4)
62
public async Task<
ReportingTask
> CreateTaskAsync(ReportingStep step, string statusText, CancellationToken cancellationToken)
77
var
task = new ReportingTask(Guid.NewGuid().ToString(), step.Id, statusText, parentStep);
127
public async Task UpdateTaskAsync(
ReportingTask
task, string statusText, CancellationToken cancellationToken)
159
public async Task CompleteTaskAsync(
ReportingTask
task, CompletionState completionState, string? completionMessage, CancellationToken cancellationToken)
Pipelines\ReportingStep.cs (4)
17
private readonly ConcurrentDictionary<string,
ReportingTask
> _tasks = new();
56
public IReadOnlyDictionary<string,
ReportingTask
> Tasks => _tasks;
66
internal void AddTask(
ReportingTask
task)
82
foreach (
var
task in _tasks.Values)
Aspire.Hosting.Tests (33)
Publishing\PipelineActivityReporterTests.cs (23)
70
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
172
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
198
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
199
var
invalidTask = new ReportingTask(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal);
222
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
244
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
276
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
374
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
394
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
436
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
691
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
726
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
Publishing\PublishingExtensionsTests.cs (10)
28
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
67
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
84
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
102
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
119
var
taskInternal = Assert.IsType<
ReportingTask
>(task);