Class UpdateUserCommandHandler
- Namespace
- KadicAuth.Application.Users.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class UpdateUserCommandHandler : IRequestHandler<UpdateUserCommand, Result<string>>
- Inheritance
-
objectUpdateUserCommandHandler
- Implements
Constructors
UpdateUserCommandHandler(IUserRepository, ITenantBranchRepository, IUserTenantBranchRepository, IRoleRepository, IAuthUnitOfWork, ITenantIdContext, IPermissionService, IStringLocalizer<AuthMessages>)
public UpdateUserCommandHandler(IUserRepository userRepository, ITenantBranchRepository tenantBranchRepository, IUserTenantBranchRepository userTenantBranchRepository, IRoleRepository roleRepository, IAuthUnitOfWork unitOfWork, ITenantIdContext tenantIdContext, IPermissionService permissionService, IStringLocalizer<AuthMessages> localizer)
Parameters
userRepositoryIUserRepositorytenantBranchRepositoryITenantBranchRepositoryuserTenantBranchRepositoryIUserTenantBranchRepositoryroleRepositoryIRoleRepositoryunitOfWorkIAuthUnitOfWorktenantIdContextITenantIdContextpermissionServiceIPermissionServicelocalizerIStringLocalizer<AuthMessages>
Methods
Handle(UpdateUserCommand, CancellationToken)
Handles a request
public Task<Result<string>> Handle(UpdateUserCommand request, CancellationToken cancellationToken)
Parameters
requestUpdateUserCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<string>>
Response from the request