ConsoleAppHelperCreateAsyncDbManagerFuncAsync(IConsoleLogger, IConsoleScriptOptions, IDbConnectionStringCleaner, CancellationToken) - метод
Пространство имён: Tessa.Platform.ConsoleAppsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static ValueTask<Func<CancellationToken, Task<DbManager>>> CreateAsyncDbManagerFuncAsync(
IConsoleLogger? logger,
IConsoleScriptOptions options,
IDbConnectionStringCleaner? connectionStringCleaner = null,
CancellationToken cancellationToken = default
)
Public Shared Function CreateAsyncDbManagerFuncAsync (
logger As IConsoleLogger,
options As IConsoleScriptOptions,
Optional connectionStringCleaner As IDbConnectionStringCleaner = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of Func(Of CancellationToken, Task(Of DbManager)))
public:
static ValueTask<Func<CancellationToken, Task<DbManager^>^>^> CreateAsyncDbManagerFuncAsync(
IConsoleLogger^ logger,
IConsoleScriptOptions^ options,
IDbConnectionStringCleaner^ connectionStringCleaner = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
static member CreateAsyncDbManagerFuncAsync :
logger : IConsoleLogger *
options : IConsoleScriptOptions *
?connectionStringCleaner : IDbConnectionStringCleaner *
?cancellationToken : CancellationToken
(* Defaults:
let _connectionStringCleaner = defaultArg connectionStringCleaner null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<Func<CancellationToken, Task<DbManager>>>
- logger IConsoleLogger
-
- options IConsoleScriptOptions
-
- connectionStringCleaner IDbConnectionStringCleaner (Optional)
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskFuncCancellationToken,
TaskDbManager