Compartilhar via


UserManager<TUser>.RegisterTokenProvider Método

Definição

Registra um provedor de token.

public:
 virtual void RegisterTokenProvider(System::String ^ providerName, Microsoft::AspNetCore::Identity::IUserTwoFactorTokenProvider<TUser> ^ provider);
public virtual void RegisterTokenProvider (string providerName, Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<TUser> provider);
abstract member RegisterTokenProvider : string * Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<'User (requires 'User : null)> -> unit
override this.RegisterTokenProvider : string * Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<'User (requires 'User : null)> -> unit
Public Overridable Sub RegisterTokenProvider (providerName As String, provider As IUserTwoFactorTokenProvider(Of TUser))

Parâmetros

providerName
String

O nome do provedor a ser registrado.

provider
IUserTwoFactorTokenProvider<TUser>

O provedor a ser registrado.

Aplica-se a