13 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (13)
Model\DashboardDataSourceTests.cs (12)
191using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 253using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 324using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 1156using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1208using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1256using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1338using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1400using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1494using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1571using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1607using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1640using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27return new DashboardDataSourcePool(
36 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
394builder.Services.AddSingleton<DashboardDataSourcePool>(); 422builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.TelemetryRepository); 426builder.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)
260context.Services.AddSingleton<DashboardDataSourcePool>();
Aspire.Dashboard.Tests (25)
Integration\StartupTests.cs (2)
163var databasePool = app.Services.GetRequiredService<DashboardDataSourcePool>();
Model\DashboardDataSourceTests.cs (15)
191using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 253using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 324using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 411.AddSingleton<DashboardDataSourcePool>(); 421await serviceProvider.GetRequiredService<DashboardDataSourcePool>().InitializeAsync(CancellationToken.None); 1156using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1208using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1256using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1338using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1400using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1494using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1571using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1607using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1640using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1717DashboardDataSourcePool 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 = []; 1272var dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore); 1366foreach (var databasePool in _databasePools)
Shared\TestDashboardDataSource.cs (2)
14DashboardDataSourcePool dataSourcePool) 22public static DashboardDataSourcePool CreatePool(