13 references to ImportAsync
Aspire.Dashboard (1)
Components\Dialogs\ManageDataDialog.razor.cs (1)
572
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);
84
await service.
ImportAsync
("traces.json", stream, CancellationToken.None);
107
await service.
ImportAsync
("metrics.json", stream, CancellationToken.None);
147
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
189
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
206
await service.
ImportAsync
("console.txt", stream, CancellationToken.None);
223
await service.
ImportAsync
("empty.json", stream, CancellationToken.None);
240
await service.
ImportAsync
("invalid.json", stream, CancellationToken.None);
257
await service.
ImportAsync
("file.xml", stream, CancellationToken.None);
300
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
351
await importService.
ImportAsync
("traces.json", stream, CancellationToken.None);