9 references to Current
Aspire.Dashboard (4)
DashboardWebApplication.cs (2)
323
builder.Services.AddSingleton(services => services.GetRequiredService<DashboardDataSourcePool>().
Current
.TelemetryRepository);
327
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)
58
Assert.Equal(currentRun.DatabasePath, databasePool.
Current
.Database.DatabasePath);
59
Assert.False(databasePool.
Current
.Database.IsReadOnly);
60
Assert.Same(databasePool.
Current
.Database.ActivitySource, telemetryRepository.SqlActivitySource);
61
Assert.Same(databasePool.
Current
.TelemetryRepository, telemetryRepository);
62
Assert.Same(databasePool.
Current
.ResourceRepository, app.Services.GetRequiredService<IResourceRepository>());