Owneat Technical Guide main Help

Class CreateCategoryFormulaCommandHandler

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

public sealed class CreateCategoryFormulaCommandHandler : IRequestHandler<CreateCategoryFormulaCommand, Result<Category>>

Inheritance

object ← CreateCategoryFormulaCommandHandler

Implements

IRequestHandler<CreateCategoryFormulaCommand, Result<Category\>\>

Inherited Members

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

Constructors

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

public CreateCategoryFormulaCommandHandler(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\(CreateCategoryFormulaCommand, CancellationToken\)

Handles a request

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

Parameters

command CreateCategoryFormulaCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Category\>\>

Response from the request

Last modified: 21 May 2024