Share via


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

 

Asynchronously generates a protected string for a user.

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

Syntax

public Task<string> GenerateAsync(
    string purpose,
    UserManager<TUser, TKey> manager,
    TUser user
)
public:
virtual Task<String^>^ GenerateAsync(
    String^ purpose,
    UserManager<TUser, TKey>^ manager,
    TUser user
) sealed
abstract GenerateAsync : 
        purpose:string *
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser -> Task<string>
override GenerateAsync : 
        purpose:string *
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser -> Task<string>
Public 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 that completes the operation.

Implements

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

See Also

DataProtectorTokenProvider<TUser, TKey> Class
Microsoft.AspNet.Identity.Owin Namespace
ASP.NET Identity

Return to top