3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
123DatabasePath = Path.Combine(RunDirectory, DatabaseFileName); 132DatabasePath = Path.Combine(RunDirectory, DatabaseFileName); 141DatabasePath = Path.Combine(RunDirectory, DatabaseFileName);
35 references to DatabasePath
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (9)
145$"Dashboard data for application '{applicationName}' is already in use by another dashboard process. Database path: '{DatabasePath}'."); 148if (!File.Exists(DatabasePath)) 150_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.", DatabasePath); 152else if (!DashboardSqliteDatabase.IsCompatible(DatabasePath)) 156DatabasePath, 158DeleteDatabaseFiles(DatabasePath); 162_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.", DatabasePath); 183DatabaseFileName = Path.GetFileName(DatabasePath) 191DatabasePath);
Aspire.Dashboard.Tests (26)
Model\DashboardDataSourceTests.cs (26)
167using (var connection = new SqliteConnection($"Data Source={runStore.DatabasePath};Pooling=False")) 204$"Dashboard run store initialized with persistence mode 'Run'. Run directory: '{runStore.RunDirectory}'. Database path: '{runStore.DatabasePath}'.", 227databasePath = runStore.DatabasePath; 320using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 365write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 378firstDatabasePath = firstRunStore.DatabasePath; 387Assert.Equal(firstDatabasePath, secondRunStore.DatabasePath); 390Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.DatabasePath)); 393write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 407$"Dashboard data for application 'My Dashboard' is already in use by another dashboard process. Database path: '{firstRunStore.DatabasePath}'.", 420databasePath = firstRunStore.DatabasePath; 432Assert.Equal(databasePath, secondRunStore.DatabasePath); 452databasePath = firstRunStore.DatabasePath; 514using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 519using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 572using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 577using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 580using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 640using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 754using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 802using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 852using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 917malformedDatabasePath = malformedRunStore.DatabasePath; 1064using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1080using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1257using var database = new DashboardSqliteDatabase(runStore.DatabasePath, pooling: false);