ConsoleSessionManagerOpenAsync - метод
Open session.
Пространство имён: Tessa.Platform.ConsoleAppsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public Task<bool> OpenAsync(
ISessionCredentials? credentials,
bool extendedInitialization = false,
Func<Exception, CancellationToken, ValueTask>? onExceptionAsync = null,
CancellationToken cancellationToken = default
)
Public Function OpenAsync (
credentials As ISessionCredentials,
Optional extendedInitialization As Boolean = false,
Optional onExceptionAsync As Func(Of Exception, CancellationToken, ValueTask) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
public:
virtual Task<bool>^ OpenAsync(
ISessionCredentials^ credentials,
bool extendedInitialization = false,
Func<Exception^, CancellationToken, ValueTask>^ onExceptionAsync = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract OpenAsync :
credentials : ISessionCredentials *
?extendedInitialization : bool *
?onExceptionAsync : Func<Exception, CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _extendedInitialization = defaultArg extendedInitialization false
let _onExceptionAsync = defaultArg onExceptionAsync null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
override OpenAsync :
credentials : ISessionCredentials *
?extendedInitialization : bool *
?onExceptionAsync : Func<Exception, CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _extendedInitialization = defaultArg extendedInitialization false
let _onExceptionAsync = defaultArg onExceptionAsync null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
- credentials ISessionCredentials
Настройки входа, используемые для открытия сессии.
- extendedInitialization Boolean (Optional)
- Whether use extensions.
- onExceptionAsync FuncException, CancellationToken, ValueTask (Optional)
- Exception handler callback.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskBooleanWhether session is opened.
IConsoleSessionManagerOpenAsync(ISessionCredentials, Boolean, FuncException, CancellationToken, ValueTask, CancellationToken)