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