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