3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
133DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 142DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName); 159DatabasePath = Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
37 references to DatabasePath
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (9)
163$"Dashboard data for application '{applicationName}' is already in use by another dashboard process. Database path: '{DatabasePath}'."); 166if (!File.Exists(DatabasePath)) 168_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.", DatabasePath); 170else if (!DashboardSqliteDatabase.IsCompatible(DatabasePath)) 174DatabasePath, 176DeleteDatabaseFiles(DatabasePath); 180_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.", DatabasePath); 201DatabaseFileName = Path.GetFileName(DatabasePath) 209DatabasePath);
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")) 355$"Dashboard run store initialized with persistence mode 'Run'. Current working directory: '{runStore.CurrentWorkingDirectory}'. Database path: '{runStore.DatabasePath}'.", 378databasePath = runStore.DatabasePath; 539using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 585write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 598firstDatabasePath = firstRunStore.DatabasePath; 607Assert.Equal(firstDatabasePath, secondRunStore.DatabasePath); 610Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.DatabasePath)); 613write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 627$"Dashboard data for application 'My Dashboard' is already in use by another dashboard process. Database path: '{firstRunStore.DatabasePath}'.", 642databasePath = firstRunStore.DatabasePath; 655Assert.Equal(databasePath, secondRunStore.DatabasePath); 675databasePath = firstRunStore.DatabasePath; 737using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 742using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 949using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 954using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 957using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 1035using var database = new DashboardSqliteDatabase(activeRunStore.DatabasePath, pooling: false); 1150using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1200using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1250using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1316malformedDatabasePath = malformedRunStore.DatabasePath; 1463using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1479using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1695using var database = new DashboardSqliteDatabase(runStore.DatabasePath, pooling: false);