Owneat Technical Guide main Help

Class GetAllProductsByRestaurantIdQueryHandler

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

public sealed class GetAllProductsByRestaurantIdQueryHandler : IRequestHandler<GetAllProductsByRestaurantIdQuery, Result<IEnumerable<Product>>>

Inheritance

object ← GetAllProductsByRestaurantIdQueryHandler

Implements

IRequestHandler<GetAllProductsByRestaurantIdQuery, Result<IEnumerable<Product\>\>\>

Inherited Members

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

Constructors

GetAllProductsByRestaurantIdQueryHandler\(IProductRepository\)

public GetAllProductsByRestaurantIdQueryHandler(IProductRepository productRepository)

Parameters

productRepository IProductRepository

Methods

Handle\(GetAllProductsByRestaurantIdQuery, CancellationToken\)

Handles a request

public Task<Result<IEnumerable<Product>>> Handle(GetAllProductsByRestaurantIdQuery request, CancellationToken cancellationToken)

Parameters

request GetAllProductsByRestaurantIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< IEnumerable <Product\>\>\>

Response from the request

Last modified: 21 May 2024