Share via


IUserTokenProvider<TUser, TKey>.GenerateAsync Method (String, UserManager<TUser, TKey>, TUser)

 

Asynchronously generates a token for a user with a specific purpose.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

Task<string> GenerateAsync(
    string purpose,
    UserManager<TUser, TKey> manager,
    TUser user
)
Task<String^>^ GenerateAsync(
    String^ purpose,
    UserManager<TUser, TKey>^ manager,
    TUser user
)
abstract GenerateAsync : 
        purpose:string *
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser -> Task<string>
Function GenerateAsync (
    purpose As String,
    manager As UserManager(Of TUser, TKey),
    user As TUser
) As Task(Of String)

Parameters

  • user
    Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task<String>

The task object representing the asynchronous operation.

See Also

IUserTokenProvider<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top