2 instantiations of ReportingTask
Aspire.Hosting (1)
Pipelines\PipelineActivityReporter.cs (1)
95
var task = new
ReportingTask
(Guid.NewGuid().ToString(), step.Id, statusText, parentStep);
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
248
var invalidTask = new
ReportingTask
(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal);
54 references to ReportingTask
Aspire.Hosting (8)
Pipelines\PipelineActivityReporter.cs (4)
80
public async Task<
ReportingTask
> CreateTaskAsync(ReportingStep step, string statusText, bool enableMarkdown, CancellationToken cancellationToken)
95
var
task = new ReportingTask(Guid.NewGuid().ToString(), step.Id, statusText, parentStep);
140
public async Task UpdateTaskAsync(
ReportingTask
task, string statusText, bool enableMarkdown, CancellationToken cancellationToken)
206
public async Task CompleteTaskAsync(
ReportingTask
task, CompletionState completionState, string? completionMessage, bool enableMarkdown, CancellationToken cancellationToken)
Pipelines\ReportingStep.cs (4)
14
private readonly ConcurrentDictionary<string,
ReportingTask
> _tasks = new();
65
public IReadOnlyDictionary<string,
ReportingTask
> Tasks => _tasks;
75
internal void AddTask(
ReportingTask
task)
91
foreach (
var
task in _tasks.Values)
Aspire.Hosting.Tests (46)
Pipelines\CorePipelineApiTests.cs (1)
38
[InlineData(typeof(
ReportingTask
))]
Publishing\PipelineActivityReporterTests.cs (35)
119
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
221
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
247
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
248
var
invalidTask = new ReportingTask(taskInternal.Id, "non-existent-step", "Initial status", dummyStepInternal);
271
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
293
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
325
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
423
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
448
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
473
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
546
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
864
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
899
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
1050
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
1130
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
1240
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
1265
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
1344
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
Publishing\PublishingExtensionsTests.cs (10)
29
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
68
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
85
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
103
var
taskInternal = Assert.IsType<
ReportingTask
>(task);
120
var
taskInternal = Assert.IsType<
ReportingTask
>(task);