Interface IDBConnectionChecker
- Namespace
- GroupeIsa.Neos.Shared.Persistence
- Assembly
- GroupeIsa.Neos.Shared.dll
Database connection checker.
public interface IDBConnectionChecker
Methods
CanConnectAsync(DatabaseType, string, CancellationToken)
Checks whether a connection can be established with the specified database.
Task<bool> CanConnectAsync(DatabaseType databaseType, string connectionString, CancellationToken cancellationToken = default)
Parameters
databaseTypeDatabaseTypeThe database server type (Only supported : SqlServer, PostgreSQL, Oracle).
connectionStringstringThe connection string to use.
cancellationTokenCancellationTokenThe cancellation token.