Class DeleteRestaurantEventCommandHandler
Namespace: Restaurant.Application.Requests.RestaurantEvent
Assembly: Restaurant.Application.dll
public sealed class DeleteRestaurantEventCommandHandler : IRequestHandler<DeleteRestaurantEventCommand, Result<Unit>>
Inheritance
object ← DeleteRestaurantEventCommandHandler
Implements
IRequestHandler<DeleteRestaurantEventCommand, Result<Unit\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
DeleteRestaurantEventCommandHandler\(IRestaurantEventRepository, IRestaurantRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)
public DeleteRestaurantEventCommandHandler(IRestaurantEventRepository restaurantEventRepository, IRestaurantRepository restaurantRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)
Parameters
restaurantEventRepository IRestaurantEventRepository
restaurantRepository IRestaurantRepository
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
unitOfWork IUnitOfWork
Methods
Handle\(DeleteRestaurantEventCommand, CancellationToken\)
Handles a request
public Task<Result<Unit>> Handle(DeleteRestaurantEventCommand request, CancellationToken cancellationToken)
Parameters
request DeleteRestaurantEventCommand
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<Unit\>\>
Response from the request
Last modified: 21 May 2024