1 implementation of ITelemetryRepositoryWriter
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
22public sealed partial class SqliteTelemetryRepository : ITelemetryRepository, ITelemetryRepositoryWriter
27 references to ITelemetryRepositoryWriter
Aspire.Dashboard (14)
Components\Dialogs\ManageDataDialog.razor.cs (1)
39public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\Metrics.razor.cs (1)
70public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\StructuredLogs.razor.cs (1)
68public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
Components\Pages\Traces.razor.cs (1)
68public required ITelemetryRepositoryWriter TelemetryRepositoryWriter { get; init; }
DashboardWebApplication.cs (2)
387builder.Services.AddSingleton<ITelemetryRepositoryWriter>(services => 388(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 (3)
Shared\FluentUISetupHelpers.cs (2)
162Func<ITelemetryRepositoryWriter, Task> seed) 229context.Services.AddSingleton<ITelemetryRepositoryWriter>(services => services.GetRequiredService<SqliteTelemetryRepository>());
Shared\TelemetryHelpSetupHelpers.cs (1)
38public static Task AddSignalAsync(ITelemetryRepositoryWriter repository, AspireDataType signal) => signal switch
Aspire.Dashboard.Playwright.Tests (6)
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>();
Aspire.Dashboard.Tests (4)
Model\DashboardSqliteDatabaseTests.cs (1)
96telemetryWriteTask = ((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();