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, ICurrentUser, IStringLocalizer<AuthMessages>)
public UpdateUserCommandHandler(IUserRepository userRepository, ITenantBranchRepository tenantBranchRepository, IUserTenantBranchRepository userTenantBranchRepository, IRoleRepository roleRepository, IAuthUnitOfWork unitOfWork, ICurrentUser currentUser, IStringLocalizer<AuthMessages> localizer)
Parameters
userRepositoryIUserRepositorytenantBranchRepositoryITenantBranchRepositoryuserTenantBranchRepositoryIUserTenantBranchRepositoryroleRepositoryIRoleRepositoryunitOfWorkIAuthUnitOfWorkcurrentUserICurrentUserlocalizerIStringLocalizer<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