Owneat Technical Guide main Help

Class CreatePaymentCommandHandler

Namespace: Payment.Application.Requests.Handlers.Payment
Assembly: Payment.Application.dll

public sealed class CreatePaymentCommandHandler : IRequestHandler<CreatePaymentCommand, Result<Payment>>

Inheritance

object ← CreatePaymentCommandHandler

Implements

IRequestHandler<CreatePaymentCommand, Result<Payment\>\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

CreatePaymentCommandHandler\(IPaymentRepository, IUnitOfWork, IBillingPlatformService\)

public CreatePaymentCommandHandler(IPaymentRepository paymentRepository, IUnitOfWork unitOfWork, IBillingPlatformService billingPlatformService)

Parameters

paymentRepository IPaymentRepository

unitOfWork IUnitOfWork

billingPlatformService IBillingPlatformService

Methods

Handle\(CreatePaymentCommand, CancellationToken\)

Handles a request

public Task<Result<Payment>> Handle(CreatePaymentCommand command, CancellationToken cancellationToken)

Parameters

command CreatePaymentCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Payment\>\>

Response from the request

Last modified: 21 May 2024