Class MoveCustomerToAnotherTableCommandHandler
Namespace: Ordering.Application.Requests.Handlers.Table
Assembly: Ordering.Application.dll
public sealed class MoveCustomerToAnotherTableCommandHandler : IRequestHandler<MoveCustomerToAnotherTableCommand, Result<Unit>>
Inheritance
object ← MoveCustomerToAnotherTableCommandHandler
Implements
IRequestHandler<MoveCustomerToAnotherTableCommand, Result<Unit\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
MoveCustomerToAnotherTableCommandHandler\(ITableRepository, ICustomerRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)
public MoveCustomerToAnotherTableCommandHandler(ITableRepository tableRepository, ICustomerRepository customerRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)
Parameters
tableRepository ITableRepository
customerRepository ICustomerRepository
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
unitOfWork IUnitOfWork
Methods
Handle\(MoveCustomerToAnotherTableCommand, CancellationToken\)
Handles a request
public Task<Result<Unit>> Handle(MoveCustomerToAnotherTableCommand command, CancellationToken cancellationToken)
Parameters
command MoveCustomerToAnotherTableCommand
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<Unit\>\>
Response from the request
Last modified: 21 May 2024