13 references to ImportAsync
Aspire.Dashboard (1)
Components\Dialogs\ManageDataDialog.razor.cs (1)
532
await TelemetryImportService.
ImportAsync
(file.Name, fileStream, CancellationToken.None);
Aspire.Dashboard.Tests (12)
Model\TelemetryImportServiceTests.cs (12)
44
await Assert.ThrowsAsync<InvalidOperationException>(() => service.
ImportAsync
("logs.json", stream, CancellationToken.None));
59
await service.
ImportAsync
("logs.json", stream, CancellationToken.None);
90
await service.
ImportAsync
("traces.json", stream, CancellationToken.None);
120
await service.
ImportAsync
("metrics.json", stream, CancellationToken.None);
160
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
202
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
219
await service.
ImportAsync
("console.txt", stream, CancellationToken.None);
236
await service.
ImportAsync
("empty.json", stream, CancellationToken.None);
253
await service.
ImportAsync
("invalid.json", stream, CancellationToken.None);
270
await service.
ImportAsync
("file.xml", stream, CancellationToken.None);
319
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
383
await importService.
ImportAsync
("traces.json", stream, CancellationToken.None);