9 references to Current
Aspire.Dashboard (4)
DashboardWebApplication.cs (2)
385
builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().
Current
.TelemetryRepository);
389
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)
118
Assert.Equal(currentRun.DatabasePath, databasePool.
Current
.Database.DatabasePath);
119
Assert.False(databasePool.
Current
.Database.IsReadOnly);
120
Assert.Same(databasePool.
Current
.Database.ActivitySource, telemetryRepository.SqlActivitySource);
121
Assert.Same(databasePool.
Current
.TelemetryRepository, telemetryRepository);
122
Assert.Same(databasePool.
Current
.ResourceRepository, app.Services.GetRequiredService<IResourceRepository>());