Skip to content

Commit

Permalink
Merge branch 'dev' into maliming/async-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed Jan 4, 2021
2 parents 4924b01 + 379a215 commit bb1b8f0
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@

namespace Volo.Abp.PermissionManagement.Identity
{
public class RoleDeletedEventHandler :
ILocalEventHandler<EntityDeletedEventData<IdentityRole>>,
ITransientDependency
{
protected IPermissionManager PermissionManager { get; }

public RoleDeletedEventHandler(IPermissionManager permissionManager)
{
PermissionManager = permissionManager;
}

public virtual async Task HandleEventAsync(EntityDeletedEventData<IdentityRole> eventData)
{
await PermissionManager.DeleteAsync(RolePermissionValueProvider.ProviderName, eventData.Entity.Name);
}
}
// public class RoleDeletedEventHandler :
// ILocalEventHandler<EntityDeletedEventData<IdentityRole>>,
// ITransientDependency
// {
// protected IPermissionManager PermissionManager { get; }
//
// public RoleDeletedEventHandler(IPermissionManager permissionManager)
// {
// PermissionManager = permissionManager;
// }
//
// public virtual async Task HandleEventAsync(EntityDeletedEventData<IdentityRole> eventData)
// {
// await PermissionManager.DeleteAsync(RolePermissionValueProvider.ProviderName, eventData.Entity.Name);
// }
// }
}

0 comments on commit bb1b8f0

Please sign in to comment.