11 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (11)
Model\DashboardDataSourceTests.cs (10)
116using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 174using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 760using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 810using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 858using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 939using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1001using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1095using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1171using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1202using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27return new DashboardDataSourcePool(
34 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
290builder.Services.AddSingleton<DashboardDataSourcePool>(); 323builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().Current.TelemetryRepository); 327builder.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)
226context.Services.AddSingleton<DashboardDataSourcePool>();
Aspire.Dashboard.Tests (23)
Integration\StartupTests.cs (2)
53var databasePool = app.Services.GetRequiredService<DashboardDataSourcePool>();
Model\DashboardDataSourceTests.cs (13)
116using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 174using var dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options)); 259.AddSingleton<DashboardDataSourcePool>(); 269await serviceProvider.GetRequiredService<DashboardDataSourcePool>().InitializeAsync(CancellationToken.None); 760using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 810using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 858using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options)); 939using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1001using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1095using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1171using var dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory); 1202using var dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory); 1279DashboardDataSourcePool 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(