14 references to ImportAsync
Aspire.Dashboard (1)
Components\Dialogs\ManageDataDialog.razor.cs (1)
572
await TelemetryImportService.
ImportAsync
(file.Name, fileStream, CancellationToken.None);
Aspire.Dashboard.Tests (13)
Model\TelemetryImportServiceTests.cs (13)
46
await Assert.ThrowsAsync<InvalidOperationException>(() => service.
ImportAsync
("logs.json", stream, CancellationToken.None));
61
await service.
ImportAsync
("logs.json", stream, CancellationToken.None);
86
await service.
ImportAsync
("traces.json", stream, CancellationToken.None);
109
await service.
ImportAsync
("metrics.json", stream, CancellationToken.None);
149
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
191
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
208
await service.
ImportAsync
("console.txt", stream, CancellationToken.None);
225
await service.
ImportAsync
("empty.json", stream, CancellationToken.None);
242
await service.
ImportAsync
("invalid.json", stream, CancellationToken.None);
259
await service.
ImportAsync
("file.xml", stream, CancellationToken.None);
302
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
359
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
414
await importService.
ImportAsync
("traces.json", stream, CancellationToken.None);