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