Owneat Technical Guide main Help

Class DeleteMenuCommandHandler

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

public sealed class DeleteMenuCommandHandler : IRequestHandler<DeleteMenuCommand, Result<Unit>>

Inheritance

object ← DeleteMenuCommandHandler

Implements

IRequestHandler<DeleteMenuCommand, Result<Unit\>\>

Inherited Members

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

Constructors

DeleteMenuCommandHandler\(IMenuRepository, IRestaurantRepository, IBillingPlatformProductService, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)

public DeleteMenuCommandHandler(IMenuRepository menuRepository, IRestaurantRepository restaurantRepository, IBillingPlatformProductService billingPlatformProductService, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)

Parameters

menuRepository IMenuRepository

restaurantRepository IRestaurantRepository

billingPlatformProductService IBillingPlatformProductService

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

Methods

Handle\(DeleteMenuCommand, CancellationToken\)

Handles a request

public Task<Result<Unit>> Handle(DeleteMenuCommand request, CancellationToken cancellationToken)

Parameters

request DeleteMenuCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Unit\>\>

Response from the request

Last modified: 21 May 2024