DataProtectorTokenProvider<TUser, TKey>.IsValidProviderForUserAsync Method (UserManager<TUser, TKey>, TUser)
Asynchronously determines whether the provider can be used to generate tokens for this user.
Namespace: Microsoft.AspNet.Identity.Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
public Task<bool> IsValidProviderForUserAsync(
UserManager<TUser, TKey> manager,
TUser user
)
public:
virtual Task<bool>^ IsValidProviderForUserAsync(
UserManager<TUser, TKey>^ manager,
TUser user
) sealed
abstract IsValidProviderForUserAsync :
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
override IsValidProviderForUserAsync :
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
Public Function IsValidProviderForUserAsync (
manager As UserManager(Of TUser, TKey),
user As TUser
) As Task(Of Boolean)
Parameters
manager
Type: Microsoft.AspNet.Identity.UserManager<TUser, TKey>The user manager.
user
Type: TUserThe user of the token.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
The task that completes the operation.
Implements
IUserTokenProvider<TUser, TKey>.IsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)
See Also
DataProtectorTokenProvider<TUser, TKey> Class
Microsoft.AspNet.Identity.Owin Namespace
ASP.NET Identity
Return to top