Table of Contents

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

databaseType DatabaseType

The database server type (Only supported : SqlServer, PostgreSQL, Oracle).

connectionString string

The connection string to use.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<bool>

A value indicating whether the connection can be established.