Class DeleteFormulaCommandHandler
Namespace: Restaurant.Application.Requests.Formula
Assembly: Restaurant.Application.dll
public sealed class DeleteFormulaCommandHandler : IRequestHandler<DeleteFormulaCommand, Result<Unit>>
Inheritance
object ← DeleteFormulaCommandHandler
Implements
IRequestHandler<DeleteFormulaCommand, Result<Unit\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
DeleteFormulaCommandHandler\(IRestaurantRepository, IFormulaRepository, IBillingPlatformProductService, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)
public DeleteFormulaCommandHandler(IRestaurantRepository restaurantRepository, IFormulaRepository formulaRepository, IBillingPlatformProductService billingPlatformProductService, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)
Parameters
restaurantRepository IRestaurantRepository
formulaRepository IFormulaRepository
billingPlatformProductService IBillingPlatformProductService
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
unitOfWork IUnitOfWork
Methods
Handle\(DeleteFormulaCommand, CancellationToken\)
Handles a request
public Task<Result<Unit>> Handle(DeleteFormulaCommand request, CancellationToken cancellationToken)
Parameters
request DeleteFormulaCommand
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<Unit\>\>
Response from the request
Last modified: 21 May 2024