11 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (11)
Model\DashboardDataSourceTests.cs (10)
145using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 203using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 816using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 866using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 914using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 995using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1057using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1151using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1227using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1258using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27return new DashboardDataSourcePool(
34 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
295builder.Services.AddSingleton<DashboardDataSourcePool>(); 328builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.TelemetryRepository); 332builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.ResourceRepository);
ServiceClient\DashboardDataSource.cs (4)
32private readonly DashboardDataSourcePool _dataSourcePool; 34private DashboardDataSourcePool.Lease? _historicalDataSourceLease; 45DashboardDataSourcePool dataSourcePool) 103DashboardDataSourcePool.Lease? historicalDataSourceLease;
ServiceClient\DashboardDataSourceInitializer.cs (2)
7DashboardDataSourcePool dataSourcePool, 23var (pool, log) = ((DashboardDataSourcePool, ILogger))state!;
ServiceClient\DashboardDataSourcePool.cs (1)
25/// Initializes a new instance of the <see cref="DashboardDataSourcePool"/> class.
Aspire.Dashboard.Components.Tests (1)
Shared\FluentUISetupHelpers.cs (1)
236context.Services.AddSingleton<DashboardDataSourcePool>();
Aspire.Dashboard.Tests (23)
Integration\StartupTests.cs (2)
53var databasePool = app.Services.GetRequiredService<DashboardDataSourcePool>();
Model\DashboardDataSourceTests.cs (13)
145using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 203using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 288.AddSingleton<DashboardDataSourcePool>(); 298await serviceProvider.GetRequiredService<DashboardDataSourcePool>().InitializeAsync(CancellationToken.None); 816using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 866using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 914using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 995using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1057using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1151using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1227using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1258using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1335DashboardDataSourcePool dataSourcePool,
Model\ResourceMenuBuilderTests.cs (3)
29private readonly List<DashboardDataSourcePool> _databasePools = []; 50var dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore); 72foreach (var databasePool in _databasePools)
Model\TelemetryExportServiceTests.cs (3)
32private readonly List<DashboardDataSourcePool> _databasePools = []; 1270var dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore); 1364foreach (var databasePool in _databasePools)
Shared\TestDashboardDataSource.cs (2)
14DashboardDataSourcePool dataSourcePool) 22public static DashboardDataSourcePool CreatePool(