11 instantiations of DashboardDataSourcePool
Aspire.Dashboard.Tests (11)
Model\DashboardDataSourceTests.cs (10)
145
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, CreateRepositoryFactory(options));
203
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, CreateRepositoryFactory(options));
816
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
866
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
914
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, CreateRepositoryFactory(options));
995
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
1057
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
1151
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1227
using var dataSourcePool = new
DashboardDataSourcePool
(currentRunStore, repositoryFactory);
1258
using var dataSourcePool = new
DashboardDataSourcePool
(runStore, repositoryFactory);
Shared\TestDashboardDataSource.cs (1)
27
return new
DashboardDataSourcePool
(
34 references to DashboardDataSourcePool
Aspire.Dashboard (10)
DashboardWebApplication.cs (3)
295
builder.Services.AddSingleton<
DashboardDataSourcePool
>();
328
builder.Services.AddSingleton(services => services.GetRequiredService<
DashboardDataSourcePool
>().Current.TelemetryRepository);
332
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)
236
context.Services.AddSingleton<
DashboardDataSourcePool
>();
Aspire.Dashboard.Tests (23)
Integration\StartupTests.cs (2)
53
var
databasePool = app.Services.GetRequiredService<
DashboardDataSourcePool
>();
Model\DashboardDataSourceTests.cs (13)
145
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options));
203
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, CreateRepositoryFactory(options));
288
.AddSingleton<
DashboardDataSourcePool
>();
298
await serviceProvider.GetRequiredService<
DashboardDataSourcePool
>().InitializeAsync(CancellationToken.None);
816
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
866
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
914
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, CreateRepositoryFactory(options));
995
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1057
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1151
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1227
using
var
dataSourcePool = new DashboardDataSourcePool(currentRunStore, repositoryFactory);
1258
using
var
dataSourcePool = new DashboardDataSourcePool(runStore, repositoryFactory);
1335
DashboardDataSourcePool
dataSourcePool,
Model\ResourceMenuBuilderTests.cs (3)
29
private readonly List<
DashboardDataSourcePool
> _databasePools = [];
50
var
dataSourcePool = TestDashboardDataSource.CreatePool(repository, dashboardClient, runStore);
72
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(