Class GetAllUsersByRestaurantIdQueryHandler
Namespace: Identity.Application.Requests.Handlers.User
Assembly: Identity.Application.dll
Handler that returns all the users in the database that has the requested restaurantId.
Inheritance
object ← GetAllUsersByRestaurantIdQueryHandler
Implements
IRequestHandler<GetAllUsersByRestaurantIdQuery, Result<IEnumerable<UserResponse\>\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
GetAllUsersByRestaurantIdQueryHandler\(IUserRepository, IAuthorizationService, IHttpContextAccessor\)
Parameters
repository IUserRepository
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
Methods
Handle\(GetAllUsersByRestaurantIdQuery, CancellationToken\)
Handles a request
Parameters
request GetAllUsersByRestaurantIdQuery
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result< IEnumerable < UserResponse \>\>\>
Response from the request