Owneat Technical Guide main Help

Class CreateCategoryProductCommandHandler

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

public sealed class CreateCategoryProductCommandHandler : IRequestHandler<CreateCategoryProductCommand, Result<Category>>

Inheritance

object ← CreateCategoryProductCommandHandler

Implements

IRequestHandler<CreateCategoryProductCommand, Result<Category\>\>

Inherited Members

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

Constructors

CreateCategoryProductCommandHandler\(IRestaurantRepository, ICategoryRepository, IBillingPlatformProductService, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)

public CreateCategoryProductCommandHandler(IRestaurantRepository restaurantRepository, ICategoryRepository categoryRepository, IBillingPlatformProductService billingPlatformProductService, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)

Parameters

restaurantRepository IRestaurantRepository

categoryRepository ICategoryRepository

billingPlatformProductService IBillingPlatformProductService

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

Methods

Handle\(CreateCategoryProductCommand, CancellationToken\)

Handles a request

public Task<Result<Category>> Handle(CreateCategoryProductCommand command, CancellationToken cancellationToken)

Parameters

command CreateCategoryProductCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Category\>\>

Response from the request

Last modified: 21 May 2024