Class GetAllTablesQueryHandler
Namespace: Ordering.Application.Requests.Handlers.Table
Assembly: Ordering.Application.dll
public sealed class GetAllTablesQueryHandler : IRequestHandler<GetAllTablesQuery, Result<IEnumerable<Table>>>
Inheritance
object ← GetAllTablesQueryHandler
Implements
IRequestHandler<GetAllTablesQuery, Result<IEnumerable<Table\>\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
GetAllTablesQueryHandler\(ITableRepository\)
public GetAllTablesQueryHandler(ITableRepository tableRepository)
Parameters
tableRepository ITableRepository
Methods
Handle\(GetAllTablesQuery, CancellationToken\)
Handles a request
public Task<Result<IEnumerable<Table>>> Handle(GetAllTablesQuery request, CancellationToken cancellationToken)
Parameters
request GetAllTablesQuery
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result< IEnumerable <Table\>\>\>
Response from the request
Last modified: 21 May 2024