3 writes to DatabasePath
Aspire.Dashboard (3)
ServiceClient\DashboardRunStore.cs (3)
132
DatabasePath
= Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
141
DatabasePath
= Path.Combine(CurrentWorkingDirectory, DatabaseFileName);
158
DatabasePath
= 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
}'.");
165
if (!File.Exists(
DatabasePath
))
167
_logger.LogDebug("Creating dashboard database at '{DatabasePath}'.",
DatabasePath
);
169
else if (!DashboardSqliteDatabase.IsCompatible(
DatabasePath
))
173
DatabasePath
,
175
DeleteDatabaseFiles(
DatabasePath
);
179
_logger.LogDebug("Resuming dashboard database at '{DatabasePath}'.",
DatabasePath
);
200
DatabaseFileName = Path.GetFileName(
DatabasePath
)
208
DatabasePath
);
Aspire.Dashboard.Tests (28)
Model\DashboardDataSourceTests.cs (28)
137
Assert.NotEqual(firstRunStore.
DatabasePath
, secondRunStore.
DatabasePath
);
317
using (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
}'.",
377
databasePath = runStore.
DatabasePath
;
537
using var database = new DashboardSqliteDatabase(activeRunStore.
DatabasePath
, pooling: false);
582
write => write.Message == $"Creating dashboard database at '{runStore.
DatabasePath
}'.");
595
firstDatabasePath = firstRunStore.
DatabasePath
;
604
Assert.Equal(firstDatabasePath, secondRunStore.
DatabasePath
);
607
Assert.True(DashboardSqliteDatabase.IsCompatible(secondRunStore.
DatabasePath
));
610
write => 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
}'.",
639
databasePath = firstRunStore.
DatabasePath
;
652
Assert.Equal(databasePath, secondRunStore.
DatabasePath
);
672
databasePath = firstRunStore.
DatabasePath
;
734
using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
739
using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.
DatabasePath
, options);
946
using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
951
using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.
DatabasePath
, options);
954
using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.
DatabasePath
, options);
1032
using var database = new DashboardSqliteDatabase(activeRunStore.
DatabasePath
, pooling: false);
1147
using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
1195
using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
1245
using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
1310
malformedDatabasePath = malformedRunStore.
DatabasePath
;
1457
using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.
DatabasePath
, options);
1473
using var resourceContext = CreateResourceRepository(historicalRunStore.
DatabasePath
);
1689
using var database = new DashboardSqliteDatabase(runStore.
DatabasePath
, pooling: false);