13 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (13)
Model\DashboardDataSourceTests.cs (12)
147using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 209using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 280using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 1109using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1159using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1207using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1288using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1350using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1444using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1521using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1557using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1590using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27return new DashboardDataSourcePool(
36 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
363builder.Services.AddSingleton<DashboardDataSourcePool>(); 385builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.TelemetryRepository); 389builder.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)
241context.Services.AddSingleton<DashboardDataSourcePool>();
Aspire.Dashboard.Tests (25)
Integration\StartupTests.cs (2)
113var databasePool = app.Services.GetRequiredService<DashboardDataSourcePool>();
Model\DashboardDataSourceTests.cs (15)
147using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 209using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 280using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 365.AddSingleton<DashboardDataSourcePool>(); 375await serviceProvider.GetRequiredService<DashboardDataSourcePool>().InitializeAsync(CancellationToken.None); 1109using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1159using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1207using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1288using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1350using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1444using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1521using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1557using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1590using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1667DashboardDataSourcePool dataSourcePool,
Model\ResourceMenuBuilderTests.cs (3)
29private readonly List<DashboardDataSourcePool> _databasePools = []; 50var dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore); 73foreach (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(