DefaultConsoleHelperCheckConnectionAsync - метод |
Пространство имён:
Tessa.Extensions.Default.Console
Сборка:
Tessa.Extensions.Default.Console (в Tessa.Extensions.Default.Console.dll) Версия: 3.5.0.19
Синтаксис public static Task<Dbms> CheckConnectionAsync(
IConsoleLogger logger,
string configurationString,
int timeoutSecondsOverride,
bool outputConnectionString,
string databaseName = null,
bool keepOriginalDatabase = false,
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 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,
CancellationToken cancellationToken = CancellationToken()
)
static member CheckConnectionAsync :
logger : IConsoleLogger *
configurationString : string *
timeoutSecondsOverride : int *
outputConnectionString : bool *
?databaseName : string *
?keepOriginalDatabase : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _databaseName = defaultArg databaseName null
let _keepOriginalDatabase = defaultArg keepOriginalDatabase false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<Dbms>
Параметры
- logger
- Тип: Tessa.Platform.ConsoleAppsIConsoleLogger
- configurationString
- Тип: SystemString
- timeoutSecondsOverride
- Тип: SystemInt32
- outputConnectionString
- Тип: SystemBoolean
- databaseName (Optional)
- Тип: SystemString
- keepOriginalDatabase (Optional)
- Тип: SystemBoolean
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskDbmsСм. также