Class AddFormulaSectionProductCommandHandler
Namespace: Restaurant.Application.Requests.FormulaSection
Assembly: Restaurant.Application.dll
public sealed class AddFormulaSectionProductCommandHandler : IRequestHandler<AddFormulaSectionProductCommand, Result<FormulaSection>>
Inheritance
object ← AddFormulaSectionProductCommandHandler
Implements
IRequestHandler<AddFormulaSectionProductCommand, Result<FormulaSection\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
AddFormulaSectionProductCommandHandler\(IProductRepository, IFormulaSectionRepository, IUnitOfWork\)
public AddFormulaSectionProductCommandHandler(IProductRepository productRepository, IFormulaSectionRepository formulaSectionRepository, IUnitOfWork unitOfWork)
Parameters
productRepository IProductRepository
formulaSectionRepository IFormulaSectionRepository
unitOfWork IUnitOfWork
Methods
Handle\(AddFormulaSectionProductCommand, CancellationToken\)
Handles a request
public Task<Result<FormulaSection>> Handle(AddFormulaSectionProductCommand request, CancellationToken cancellationToken)
Parameters
request AddFormulaSectionProductCommand
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<FormulaSection\>\>
Response from the request
Last modified: 21 May 2024