Owneat Technical Guide main Help

Class CreateRestaurantMenuCategoryCommandHandler

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

public sealed class CreateRestaurantMenuCategoryCommandHandler : IRequestHandler<CreateRestaurantMenuCategoryCommand, Result<Restaurant>>

Inheritance

object ← CreateRestaurantMenuCategoryCommandHandler

Implements

IRequestHandler<CreateRestaurantMenuCategoryCommand, Result<Restaurant\>\>

Inherited Members

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

Constructors

CreateRestaurantMenuCategoryCommandHandler\(IRestaurantRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)

public CreateRestaurantMenuCategoryCommandHandler(IRestaurantRepository restaurantRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)

Parameters

restaurantRepository IRestaurantRepository

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

Methods

Handle\(CreateRestaurantMenuCategoryCommand, CancellationToken\)

Handles a request

public Task<Result<Restaurant>> Handle(CreateRestaurantMenuCategoryCommand request, CancellationToken cancellationToken)

Parameters

request CreateRestaurantMenuCategoryCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Restaurant\>\>

Response from the request

Last modified: 21 May 2024