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