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