15 references to ImportAsync
Aspire.Dashboard (1)
Components\Dialogs\ManageDataDialog.razor.cs (1)
617
await TelemetryImportService.
ImportAsync
(file.Name, fileStream, CancellationToken.None);
Aspire.Dashboard.Tests (14)
Model\TelemetryImportServiceTests.cs (14)
47
await service.
ImportAsync
("logs.json", stream, CancellationToken.None);
68
await Assert.ThrowsAsync<InvalidOperationException>(() => service.
ImportAsync
("logs.json", stream, CancellationToken.None));
84
await service.
ImportAsync
("logs.json", stream, CancellationToken.None);
110
await service.
ImportAsync
("traces.json", stream, CancellationToken.None);
134
await service.
ImportAsync
("metrics.json", stream, CancellationToken.None);
175
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
218
await service.
ImportAsync
("telemetry.zip", zipStream, CancellationToken.None);
236
await service.
ImportAsync
("console.txt", stream, CancellationToken.None);
254
await service.
ImportAsync
("empty.json", stream, CancellationToken.None);
272
await service.
ImportAsync
("invalid.json", stream, CancellationToken.None);
290
await service.
ImportAsync
("file.xml", stream, CancellationToken.None);
335
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
410
await importService.
ImportAsync
("logs.json", stream, CancellationToken.None);
467
await importService.
ImportAsync
("traces.json", stream, CancellationToken.None);