9 references to Current
Aspire.Dashboard (4)
DashboardWebApplication.cs (2)
362
builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().
Current
.TelemetryRepository);
366
builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().
Current
.ResourceRepository);
ServiceClient\DashboardDataSource.cs (1)
152
var currentDataSource = _dataSourcePool.
Current
;
ServiceClient\DashboardDataSourcePool.cs (1)
141
await
Current
.Database.InitializeSchemaAsync(cancellationToken).ConfigureAwait(false);
Aspire.Dashboard.Tests (5)
Integration\StartupTests.cs (5)
75
Assert.Equal(currentRun.DatabasePath, databasePool.
Current
.Database.DatabasePath);
76
Assert.False(databasePool.
Current
.Database.IsReadOnly);
77
Assert.Same(databasePool.
Current
.Database.ActivitySource, telemetryRepository.SqlActivitySource);
78
Assert.Same(databasePool.
Current
.TelemetryRepository, telemetryRepository);
79
Assert.Same(databasePool.
Current
.ResourceRepository, app.Services.GetRequiredService<IResourceRepository>());