3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
133DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 141DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 163DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
35 references to DatabasePath
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (9)
167$"Dashboard data for application '{applicationName}' is already in use by another dashboard process. Database path: '{DatabasePath}'."); 170if (!File.Exists(DatabasePath)) 172_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.", DatabasePath); 174else if (!DashboardSqliteDatabase.IsCompatible(DatabasePath)) 178DatabasePath, 180DeleteDatabaseFiles(DatabasePath); 184_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.", DatabasePath); 205DatabaseFileName = Path.GetFileName(DatabasePath) 213DatabasePath);
Aspire.Dashboard.Tests (26)
Model\DashboardDataSourceTests.cs (26)
273using (var connection = new SqliteConnection($"Data Source={runStore.DatabasePath};Pooling=False")) 310$"Dashboard run store initialized with persistence mode 'Run'. Current working directory: '{runStore.CurrentWorkingDirectory}'. Database path: '{runStore.DatabasePath}'.", 333databasePath = runStore.DatabasePath; 493using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 538write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 551firstDatabasePath = firstRunStore.DatabasePath; 560Assert.Equal(firstDatabasePath, secondRunStore.DatabasePath); 563Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.DatabasePath)); 566write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 580$"Dashboard data for application 'My Dashboard' is already in use by another dashboard process. Database path: '{firstRunStore.DatabasePath}'.", 595databasePath = firstRunStore.DatabasePath; 608Assert.Equal(databasePath, secondRunStore.DatabasePath); 628databasePath = firstRunStore.DatabasePath; 690using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 695using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 902using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 907using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 910using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 988using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 1103using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1151using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1201using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1266malformedDatabasePath = malformedRunStore.DatabasePath; 1413using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1429using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1645using var database = new DashboardSqliteDatabase(runStore.DatabasePath, pooling: false);