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