3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
132DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 141DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 158DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
37 references to DatabasePath
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (9)
162$"Dashboard data for application '{applicationName}' is already in use by another dashboard process. Database path: '{DatabasePath}'."); 165if (!File.Exists(DatabasePath)) 167_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.", DatabasePath); 169else if (!DashboardSqliteDatabase.IsCompatible(DatabasePath)) 173DatabasePath, 175DeleteDatabaseFiles(DatabasePath); 179_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.", DatabasePath); 200DatabaseFileName = Path.GetFileName(DatabasePath) 208DatabasePath);
Aspire.Dashboard.Tests (28)
Model\DashboardDataSourceTests.cs (28)
137Assert.NotEqual(firstRunStore.DatabasePath, secondRunStore.DatabasePath); 317using (var connection = new SqliteConnection($"Data Source={runStore.DatabasePath};Pooling=False")) 354$"Dashboard run store initialized with persistence mode 'Run'. Current working directory: '{runStore.CurrentWorkingDirectory}'. Database path: '{runStore.DatabasePath}'.", 377databasePath = runStore.DatabasePath; 537using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 582write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 595firstDatabasePath = firstRunStore.DatabasePath; 604Assert.Equal(firstDatabasePath, secondRunStore.DatabasePath); 607Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.DatabasePath)); 610write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 624$"Dashboard data for application 'My Dashboard' is already in use by another dashboard process. Database path: '{firstRunStore.DatabasePath}'.", 639databasePath = firstRunStore.DatabasePath; 652Assert.Equal(databasePath, secondRunStore.DatabasePath); 672databasePath = firstRunStore.DatabasePath; 734using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 739using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 946using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 951using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 954using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 1032using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 1147using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1195using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1245using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1310malformedDatabasePath = malformedRunStore.DatabasePath; 1457using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1473using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1689using var database = new DashboardSqliteDatabase(runStore.DatabasePath, pooling: false);