Class DeleteRoleCommandHandler
- Namespace
- KadicAuth.Application.Roles.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class DeleteRoleCommandHandler : IRequestHandler<DeleteRoleCommand, Result>
- Inheritance
-
objectDeleteRoleCommandHandler
- Implements
Constructors
DeleteRoleCommandHandler(IRoleRepository, ICurrentUser, IPlatformAdminService, ITenantIdContext, IStringLocalizer<AuthMessages>)
public DeleteRoleCommandHandler(IRoleRepository roleRepository, ICurrentUser currentUser, IPlatformAdminService platformAdminService, ITenantIdContext tenantIdContext, IStringLocalizer<AuthMessages> localizer)
Parameters
roleRepositoryIRoleRepositorycurrentUserICurrentUserplatformAdminServiceIPlatformAdminServicetenantIdContextITenantIdContextlocalizerIStringLocalizer<AuthMessages>
Methods
Handle(DeleteRoleCommand, CancellationToken)
Handles a request
public Task<Result> Handle(DeleteRoleCommand request, CancellationToken cancellationToken)
Parameters
requestDeleteRoleCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result>
Response from the request