ApiAccessTokenProviderCreateTokenAsync - метод
Creates the object with information about token and stores it.
Пространство имён: Tessa.Tokens.ApiСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
public Task<ITokenInfo> CreateTokenAsync(
TokenScope scope,
string description,
DateTime? expires,
Guid? userID,
TokenOptions? options,
CancellationToken cancellationToken = default
)
Public Function CreateTokenAsync (
scope As TokenScope,
description As String,
expires As DateTime?,
userID As Guid?,
options As TokenOptions,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ITokenInfo)
public:
virtual Task<ITokenInfo^>^ CreateTokenAsync(
TokenScope^ scope,
String^ description,
Nullable<DateTime> expires,
Nullable<Guid> userID,
TokenOptions^ options,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CreateTokenAsync :
scope : TokenScope *
description : string *
expires : Nullable<DateTime> *
userID : Nullable<Guid> *
options : TokenOptions *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ITokenInfo>
override CreateTokenAsync :
scope : TokenScope *
description : string *
expires : Nullable<DateTime> *
userID : Nullable<Guid> *
options : TokenOptions *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ITokenInfo>
- scope TokenScope
The token scope.
- description String
A description of the token.
- expires NullableDateTime
The expiration date and time of the token.
- userID NullableGuid
The identifier of the user for whom the token was created.
- options TokenOptions
Additional information by the token.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskITokenInfo
An object containing information about token.
IApiAccessTokenProviderCreateTokenAsync(TokenScope, String, NullableDateTime, NullableGuid, TokenOptions, CancellationToken)