3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
127DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 135DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 157DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
35 references to DatabasePath
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (9)
161$"Dashboard data for application '{applicationName}' is already in use by another dashboard process. Database path: '{DatabasePath}'."); 164if (!File.Exists(DatabasePath)) 166_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.", DatabasePath); 168else if (!DashboardSqliteDatabase.IsCompatible(DatabasePath)) 172DatabasePath, 174DeleteDatabaseFiles(DatabasePath); 178_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.", DatabasePath); 199DatabaseFileName = Path.GetFileName(DatabasePath) 207DatabasePath);
Aspire.Dashboard.Tests (26)
Model\DashboardDataSourceTests.cs (26)
196using (var connection = new SqliteConnection($"Data Source={runStore.DatabasePath};Pooling=False")) 233$"Dashboard run store initialized with persistence mode 'Run'. Current working directory: '{runStore.CurrentWorkingDirectory}'. Database path: '{runStore.DatabasePath}'.", 256databasePath = runStore.DatabasePath; 349using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 394write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 407firstDatabasePath = firstRunStore.DatabasePath; 416Assert.Equal(firstDatabasePath, secondRunStore.DatabasePath); 419Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.DatabasePath)); 422write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 436$"Dashboard data for application 'My Dashboard' is already in use by another dashboard process. Database path: '{firstRunStore.DatabasePath}'.", 449databasePath = firstRunStore.DatabasePath; 461Assert.Equal(databasePath, secondRunStore.DatabasePath); 481databasePath = firstRunStore.DatabasePath; 543using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 548using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 628using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 633using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 636using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 696using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 810using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 858using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 908using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 973malformedDatabasePath = malformedRunStore.DatabasePath; 1120using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1136using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1313using var database = new DashboardSqliteDatabase(runStore.DatabasePath, pooling: false);