Interface IDemonstrationDatabaseService
- Namespace
- ReferenceApplication.Web.Authentication.Demo
- Assembly
- ReferenceApplication.Web.dll
Manages the disposable SQLite database used only by the Development governance demonstration.
public interface IDemonstrationDatabaseService
Methods
MigrateAsync(CancellationToken)
Applies the application's migration history without removing existing demonstration evidence.
Task MigrateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenStops the operation when cancellation is requested.
Returns
- Task
A task that completes when the schema is current.
ResetAsync(CancellationToken)
Deletes the disposable demonstration database and recreates its schema from migrations.
Task ResetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenStops the operation when cancellation is requested.
Returns
- Task
A task that completes when the empty schema is ready.