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, ITenantIdContext, IPermissionService, IStringLocalizer<AuthMessages>)

public UpdateUserCommandHandler(IUserRepository userRepository, ITenantBranchRepository tenantBranchRepository, IUserTenantBranchRepository userTenantBranchRepository, IRoleRepository roleRepository, IAuthUnitOfWork unitOfWork, ITenantIdContext tenantIdContext, IPermissionService permissionService, IStringLocalizer<AuthMessages> localizer)

Parameters

userRepository IUserRepository
tenantBranchRepository ITenantBranchRepository
userTenantBranchRepository IUserTenantBranchRepository
roleRepository IRoleRepository
unitOfWork IAuthUnitOfWork
tenantIdContext ITenantIdContext
permissionService IPermissionService
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