Owneat Technical Guide main Help

Class ReorderCategoriesCommandHandler

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

public sealed class ReorderCategoriesCommandHandler : IRequestHandler<ReorderCategoriesCommand, Result<Unit>>

Inheritance

object ← ReorderCategoriesCommandHandler

Implements

IRequestHandler<ReorderCategoriesCommand, Result<Unit\>\>

Inherited Members

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

Constructors

ReorderCategoriesCommandHandler\(ICategoryRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)

public ReorderCategoriesCommandHandler(ICategoryRepository categoryRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)

Parameters

categoryRepository ICategoryRepository

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

Methods

Handle\(ReorderCategoriesCommand, CancellationToken\)

Handles a request

public Task<Result<Unit>> Handle(ReorderCategoriesCommand command, CancellationToken cancellationToken)

Parameters

command ReorderCategoriesCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Unit\>\>

Response from the request

Last modified: 21 May 2024