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