1 implementation of ITelemetryRepositoryWriter
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
22public sealed partial class SqliteTelemetryRepository : ITelemetryRepository, ITelemetryRepositoryWriter
26 references to ITelemetryRepositoryWriter
Aspire.Dashboard (14)
Components\Dialogs\ManageDataDialog.razor.cs (1)
39public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\Metrics.razor.cs (1)
68public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\StructuredLogs.razor.cs (1)
65public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\Traces.razor.cs (1)
64public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
DashboardWebApplication.cs (2)
330builder.Services.AddSingleton<ITelemetryRepositoryWriter>(services => 331(ITelemetryRepositoryWriter)services.GetRequiredService<ITelemetryRepository>());
Model\TelemetryImportService.cs (2)
21private readonly ITelemetryRepositoryWriter _telemetryRepositoryWriter; 39ITelemetryRepositoryWriter telemetryRepositoryWriter,
Otlp\OtlpLogsService.cs (2)
15private readonly ITelemetryRepositoryWriter _telemetryRepositoryWriter; 17public OtlpLogsService(ILogger<OtlpLogsService> logger, ITelemetryRepositoryWriter telemetryRepositoryWriter)
Otlp\OtlpMetricsService.cs (2)
15private readonly ITelemetryRepositoryWriter _telemetryRepositoryWriter; 17public OtlpMetricsService(ILogger<OtlpMetricsService> logger, ITelemetryRepositoryWriter telemetryRepositoryWriter)
Otlp\OtlpTraceService.cs (2)
15private readonly ITelemetryRepositoryWriter _telemetryRepositoryWriter; 17public OtlpTraceService(ILogger<OtlpTraceService> logger, ITelemetryRepositoryWriter telemetryRepositoryWriter)
Aspire.Dashboard.Components.Tests (2)
Shared\FluentUISetupHelpers.cs (2)
157Func<ITelemetryRepositoryWriter, Task> seed) 224context.Services.AddSingleton<ITelemetryRepositoryWriter>(services => services.GetRequiredService<SqliteTelemetryRepository>());
Aspire.Dashboard.Tests (10)
Integration\Playwright\AspireMenuLayoutTests.cs (2)
29var repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<ITelemetryRepositoryWriter>();
Integration\Playwright\ResourceSelectInteractionTests.cs (2)
29var repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<ITelemetryRepositoryWriter>();
Integration\Playwright\TracesLayoutTests.cs (2)
29var repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<ITelemetryRepositoryWriter>();
Model\DashboardSqliteDatabaseTests.cs (1)
89telemetryWriteTask = ((ITelemetryRepositoryWriter)telemetryRepository).ClearMetricsAsync();
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (2)
98public static ITelemetryRepositoryWriter AsWriter(this ITelemetryRepository repository) => (ITelemetryRepositoryWriter)repository;
TelemetryRepositoryTests\TraceTests.cs (1)
2691var writer = repositoryContext.Repository.AsWriter();