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