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)
45
await Assert.ThrowsAsync<InvalidOperationException>(() => service.
ImportAsync
("logs.json", stream, CancellationToken.None));
60
await service.
ImportAsync
("logs.json", stream, CancellationToken.None);
85
await service.
ImportAsync
("traces.json", stream, CancellationToken.None);
108
await service.
ImportAsync
("metrics.json", stream, CancellationToken.None);
148
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
190
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
207
await service.
ImportAsync
("console.txt", stream, CancellationToken.None);
224
await service.
ImportAsync
("empty.json", stream, CancellationToken.None);
241
await service.
ImportAsync
("invalid.json", stream, CancellationToken.None);
258
await service.
ImportAsync
("file.xml", stream, CancellationToken.None);
301
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
358
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
413
await importService.
ImportAsync
("traces.json", stream, CancellationToken.None);