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