Class DeleteUserCommandHandler
Namespace: Identity.Application.Requests.Handlers.User
Assembly: Identity.Application.dll
Delete command handler, check if Identity.Application.Requests.Handlers.User exists and delete it.
Inheritance
object ← DeleteUserCommandHandler
Implements
IRequestHandler<DeleteUserCommand, Result<Unit\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
DeleteUserCommandHandler\(IUserRepository, IUnitOfWork, IAuthorizationService, IHttpContextAccessor\)
Parameters
userRepository IUserRepository
unitOfWork IUnitOfWork
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
Methods
Handle\(DeleteUserCommand, CancellationToken\)
Try to get the Identity.Application.Requests.Handlers.User if exists and delete it.
Parameters
command DeleteUserCommand
Identity.Application.Requests.Handlers.User.DeleteUserCommand received from query.
cancellationToken CancellationToken
Token that propagate method cancellation if needed.
Returns
Task <Result<Unit\>\>
MediatR.Unit is returned, it is a custom Void type provided by mediatR.