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