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