Task<OpenSessionResult> OpenSessionAsync(
ISessionToken token,
bool consumeClientLicense = false,
Guid? twoFactorAuthTypeID = null,
string? loginMethod = null,
Dictionary<string, Object?>? info = null,
CancellationToken cancellationToken = default
)
Function OpenSessionAsync (
token As ISessionToken,
Optional consumeClientLicense As Boolean = false,
Optional twoFactorAuthTypeID As Guid? = Nothing,
Optional loginMethod As String = Nothing,
Optional info As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of OpenSessionResult)
Task<OpenSessionResult^>^ OpenSessionAsync(
ISessionToken^ token,
bool consumeClientLicense = false,
Nullable<Guid> twoFactorAuthTypeID = nullptr,
String^ loginMethod = nullptr,
Dictionary<String^, Object^>^ info = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract OpenSessionAsync :
token : ISessionToken *
?consumeClientLicense : bool *
?twoFactorAuthTypeID : Nullable<Guid> *
?loginMethod : string *
?info : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _consumeClientLicense = defaultArg consumeClientLicense false
let _twoFactorAuthTypeID = defaultArg twoFactorAuthTypeID null
let _loginMethod = defaultArg loginMethod null
let _info = defaultArg info null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<OpenSessionResult>
Способ входа в систему, соответствующий типу входа клиента в систему, или null, если способ входа неизвестен или не задан.
Это текстовое описание, указываемое в событиях истории действий. Может быть строкой локализации или обычным текстом. Строки для доступных в системе методов определены в строках локализации с префиксом ActionHistory_Sessions_LoginMethod_.