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