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