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