Table of Contents

Class UpdateUserCommandHandler

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

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

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

Methods

Handle(UpdateUserCommand, CancellationToken)

Handles a request

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

Parameters

request UpdateUserCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<string>>

Response from the request