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