Owneat Technical Guide main Help

Class RemoveFormulaSectionProductCommandHandler

Namespace: Restaurant.Application.Requests.FormulaSection
Assembly: Restaurant.Application.dll

public sealed class RemoveFormulaSectionProductCommandHandler : IRequestHandler<RemoveFormulaSectionProductCommand, Result<FormulaSection>>

Inheritance

object ← RemoveFormulaSectionProductCommandHandler

Implements

IRequestHandler<RemoveFormulaSectionProductCommand, Result<FormulaSection\>\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

RemoveFormulaSectionProductCommandHandler\(IProductRepository, IFormulaSectionRepository, IUnitOfWork\)

public RemoveFormulaSectionProductCommandHandler(IProductRepository productRepository, IFormulaSectionRepository formulaSectionRepository, IUnitOfWork unitOfWork)

Parameters

productRepository IProductRepository

formulaSectionRepository IFormulaSectionRepository

unitOfWork IUnitOfWork

Methods

Handle\(RemoveFormulaSectionProductCommand, CancellationToken\)

Handles a request

public Task<Result<FormulaSection>> Handle(RemoveFormulaSectionProductCommand request, CancellationToken cancellationToken)

Parameters

request RemoveFormulaSectionProductCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<FormulaSection\>\>

Response from the request

Last modified: 21 May 2024