13 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (13)
Model\DashboardDataSourceTests.cs (12)
147
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, CreateRepositoryFactory(options));
209
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, CreateRepositoryFactory(options));
280
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, CreateRepositoryFactory(options));
1109
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1159
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1207
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, CreateRepositoryFactory(options));
1288
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
1350
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
1444
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1521
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1557
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
1590
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)
363
builder.Services.AddSingleton<
DashboardDataSourcePool
>();
385
builder.Services.AddSingleton(services => services.GetRequiredService<
DashboardDataSourcePool
>().Current.TelemetryRepository);
389
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)
241
context.Services.AddSingleton<
DashboardDataSourcePool
>();
Aspire.Dashboard.Tests (25)
Integration\StartupTests.cs (2)
113
var
databasePool = app.Services.GetRequiredService<
DashboardDataSourcePool
>();
Model\DashboardDataSourceTests.cs (15)
147
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options));
209
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options));
280
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options));
365
.AddSingleton<
DashboardDataSourcePool
>();
375
await serviceProvider.GetRequiredService<
DashboardDataSourcePool
>().InitializeAsync(CancellationToken.None);
1109
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1159
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1207
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options));
1288
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1350
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1444
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1521
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1557
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1590
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1667
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 = [];
1270
var
dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore);
1364
foreach (
var
databasePool in _databasePools)
Shared\TestDashboardDataSource.cs (2)
14
DashboardDataSourcePool
dataSourcePool)
22
public static
DashboardDataSourcePool
CreatePool(