Owneat Technical Guide main Help

Class UpdateProductCommandHandler

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

public sealed class UpdateProductCommandHandler : IRequestHandler<UpdateProductCommand, Result<Product>>

Inheritance

object ← UpdateProductCommandHandler

Implements

IRequestHandler<UpdateProductCommand, Result<Product\>\>

Inherited Members

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

Constructors

UpdateProductCommandHandler\(IRestaurantRepository, IProductRepository, IBillingPlatformProductService, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)

public UpdateProductCommandHandler(IRestaurantRepository restaurantRepository, IProductRepository productRepository, IBillingPlatformProductService billingPlatformProductService, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)

Parameters

restaurantRepository IRestaurantRepository

productRepository IProductRepository

billingPlatformProductService IBillingPlatformProductService

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

Methods

Handle\(UpdateProductCommand, CancellationToken\)

Handles a request

public Task<Result<Product>> Handle(UpdateProductCommand command, CancellationToken cancellationToken)

Parameters

command UpdateProductCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Product\>\>

Response from the request

Last modified: 21 May 2024