Class DeleteTwoFactorLoginsOnMemberDeletedHandler
Deletes the two factor for the deleted members. This cannot be handled by the database as there is not foreign keys.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteTwoFactorLoginsOnMemberDeletedHandler : INotificationAsyncHandler<MemberDeletedNotification>, INotificationHandler
Constructors
View SourceDeleteTwoFactorLoginsOnMemberDeletedHandler(ITwoFactorLoginService)
Initializes a new instance of the DeleteTwoFactorLoginsOnMemberDeletedHandler class.
Declaration
public DeleteTwoFactorLoginsOnMemberDeletedHandler(ITwoFactorLoginService twoFactorLoginService)
Parameters
| Type | Name | Description |
|---|---|---|
| ITwoFactorLoginService | twoFactorLoginService |
Methods
View SourceHandleAsync(MemberDeletedNotification, CancellationToken)
Handles a notification.
Declaration
public Task HandleAsync(MemberDeletedNotification notification, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| MemberDeletedNotification | notification | The notification. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing the asynchronous operation. |