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