Class AssignUserBranchesCommandHandler
- Namespace
- KadicAuth.Application.Users.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class AssignUserBranchesCommandHandler : IRequestHandler<AssignUserBranchesCommand, Result<string>>
- Inheritance
-
objectAssignUserBranchesCommandHandler
- Implements
Constructors
AssignUserBranchesCommandHandler(IUserRepository, ITenantBranchRepository, IUserTenantBranchRepository, IRoleRepository, IPermissionRepository, IAuthUnitOfWork, ICurrentUser, IStringLocalizer<AuthMessages>)
public AssignUserBranchesCommandHandler(IUserRepository userRepository, ITenantBranchRepository tenantBranchRepository, IUserTenantBranchRepository userTenantBranchRepository, IRoleRepository roleRepository, IPermissionRepository permissionRepository, IAuthUnitOfWork unitOfWork, ICurrentUser currentUser, IStringLocalizer<AuthMessages> localizer)
Parameters
userRepositoryIUserRepositorytenantBranchRepositoryITenantBranchRepositoryuserTenantBranchRepositoryIUserTenantBranchRepositoryroleRepositoryIRoleRepositorypermissionRepositoryIPermissionRepositoryunitOfWorkIAuthUnitOfWorkcurrentUserICurrentUserlocalizerIStringLocalizer<AuthMessages>
Methods
Handle(AssignUserBranchesCommand, CancellationToken)
Handles a request
public Task<Result<string>> Handle(AssignUserBranchesCommand request, CancellationToken cancellationToken)
Parameters
requestAssignUserBranchesCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<string>>
Response from the request