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