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