Class CreateFormulaSectionInFormulaCommandHandler
Namespace: Restaurant.Application.Requests.Formula
Assembly: Restaurant.Application.dll
public sealed class CreateFormulaSectionInFormulaCommandHandler : IRequestHandler<CreateFormulaSectionInFormulaCommand, Result<Formula>>
Inheritance
object ← CreateFormulaSectionInFormulaCommandHandler
Implements
IRequestHandler<CreateFormulaSectionInFormulaCommand, Result<Formula\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
CreateFormulaSectionInFormulaCommandHandler\(IRestaurantRepository, IFormulaRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)
public CreateFormulaSectionInFormulaCommandHandler(IRestaurantRepository restaurantRepository, IFormulaRepository formulaRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)
Parameters
restaurantRepository IRestaurantRepository
formulaRepository IFormulaRepository
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
unitOfWork IUnitOfWork
Methods
Handle\(CreateFormulaSectionInFormulaCommand, CancellationToken\)
Handles a request
public Task<Result<Formula>> Handle(CreateFormulaSectionInFormulaCommand command, CancellationToken cancellationToken)
Parameters
command CreateFormulaSectionInFormulaCommand
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<Formula\>\>
Response from the request
Last modified: 21 May 2024