Table of Contents

Class AssignUserBranchesCommandHandler

Namespace
KadicAuth.Application.Users.Commands
Assembly
KadicAuth.Application.dll
public sealed class AssignUserBranchesCommandHandler : IRequestHandler<AssignUserBranchesCommand, Result<string>>
Inheritance
object
AssignUserBranchesCommandHandler
Implements
IRequestHandler<AssignUserBranchesCommand, Result<string>>

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

userRepository IUserRepository
tenantBranchRepository ITenantBranchRepository
userTenantBranchRepository IUserTenantBranchRepository
roleRepository IRoleRepository
permissionRepository IPermissionRepository
unitOfWork IAuthUnitOfWork
currentUser ICurrentUser
localizer IStringLocalizer<AuthMessages>

Methods

Handle(AssignUserBranchesCommand, CancellationToken)

Handles a request

public Task<Result<string>> Handle(AssignUserBranchesCommand request, CancellationToken cancellationToken)

Parameters

request AssignUserBranchesCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<string>>

Response from the request