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)); 1153using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1203using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1251using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1332using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1394using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1488using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1565using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1601using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1634using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27return new DashboardDataSourcePool(
36 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
373builder.Services.AddSingleton<DashboardDataSourcePool>(); 400builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.TelemetryRepository); 404builder.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)
259context.Services.AddSingleton<DashboardDataSourcePool>();
Aspire.Dashboard.Tests (25)
Integration\StartupTests.cs (2)
113var 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)); 409.AddSingleton<DashboardDataSourcePool>(); 419await serviceProvider.GetRequiredService<DashboardDataSourcePool>().InitializeAsync(CancellationToken.None); 1153using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1203using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1251using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 1332using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1394using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1488using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1565using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1601using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1634using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1711DashboardDataSourcePool 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(