DefaultConsoleHelperCheckConnectionAsync - метод
Пространство имён: Tessa.Extensions.Default.ConsoleСборка: Tessa.Extensions.Default.Console (в Tessa.Extensions.Default.Console.dll) Версия: 4.0.4
public static Task<Dbms> CheckConnectionAsync(
IConsoleLogger logger,
string? configurationString,
int timeoutSecondsOverride,
bool outputConnectionString,
string? databaseName = null,
bool keepOriginalDatabase = false,
IDbConnectionStringCleaner? connectionStringCleaner = null,
CancellationToken cancellationToken = default
)
Public Shared Function CheckConnectionAsync (
logger As IConsoleLogger,
configurationString As String,
timeoutSecondsOverride As Integer,
outputConnectionString As Boolean,
Optional databaseName As String = Nothing,
Optional keepOriginalDatabase As Boolean = false,
Optional connectionStringCleaner As IDbConnectionStringCleaner = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Dbms)
public:
static Task<Dbms>^ CheckConnectionAsync(
IConsoleLogger^ logger,
String^ configurationString,
int timeoutSecondsOverride,
bool outputConnectionString,
String^ databaseName = nullptr,
bool keepOriginalDatabase = false,
IDbConnectionStringCleaner^ connectionStringCleaner = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
static member CheckConnectionAsync :
logger : IConsoleLogger *
configurationString : string *
timeoutSecondsOverride : int *
outputConnectionString : bool *
?databaseName : string *
?keepOriginalDatabase : bool *
?connectionStringCleaner : IDbConnectionStringCleaner *
?cancellationToken : CancellationToken
(* Defaults:
let _databaseName = defaultArg databaseName null
let _keepOriginalDatabase = defaultArg keepOriginalDatabase false
let _connectionStringCleaner = defaultArg connectionStringCleaner null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<Dbms>
- logger IConsoleLogger
-
- configurationString String
-
- timeoutSecondsOverride Int32
-
- outputConnectionString Boolean
-
- databaseName String (Optional)
-
- keepOriginalDatabase Boolean (Optional)
-
- connectionStringCleaner IDbConnectionStringCleaner (Optional)
-
- cancellationToken CancellationToken (Optional)
-
TaskDbms