Table of Contents

Class CreateUserCommandHandler

Namespace
KadicAuth.Application.Users.Commands
Assembly
KadicAuth.Application.dll
public sealed class CreateUserCommandHandler : IRequestHandler<CreateUserCommand, Result<Guid>>
Inheritance
object
CreateUserCommandHandler
Implements
IRequestHandler<CreateUserCommand, Result<Guid>>

Constructors

CreateUserCommandHandler(IUserRepository, ITenantBranchRepository, IRoleRepository, IPasswordHasher, IAuthUnitOfWork, ICurrentUser, IPlatformAdminService, ITenantIdContext, IStringLocalizer<AuthMessages>)

public CreateUserCommandHandler(IUserRepository userRepository, ITenantBranchRepository tenantBranchRepository, IRoleRepository roleRepository, IPasswordHasher passwordHasher, IAuthUnitOfWork unitOfWork, ICurrentUser currentUser, IPlatformAdminService platformAdminService, ITenantIdContext tenantIdContext, IStringLocalizer<AuthMessages> localizer)

Parameters

userRepository IUserRepository
tenantBranchRepository ITenantBranchRepository
roleRepository IRoleRepository
passwordHasher IPasswordHasher
unitOfWork IAuthUnitOfWork
currentUser ICurrentUser
platformAdminService IPlatformAdminService
tenantIdContext ITenantIdContext
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateUserCommand, CancellationToken)

Handles a request

public Task<Result<Guid>> Handle(CreateUserCommand request, CancellationToken cancellationToken)

Parameters

request CreateUserCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<Guid>>

Response from the request