Owneat Technical Guide main Help

Class DeletePaymentCommandHandler

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

public sealed class DeletePaymentCommandHandler : IRequestHandler<DeletePaymentCommand, Result<Unit>>

Inheritance

object ← DeletePaymentCommandHandler

Implements

IRequestHandler<DeletePaymentCommand, Result<Unit\>\>

Inherited Members

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

Constructors

DeletePaymentCommandHandler\(IPaymentRepository, IUnitOfWork\)

public DeletePaymentCommandHandler(IPaymentRepository paymentRepository, IUnitOfWork unitOfWork)

Parameters

paymentRepository IPaymentRepository

unitOfWork IUnitOfWork

Methods

Handle\(DeletePaymentCommand, CancellationToken\)

Handles a request

public Task<Result<Unit>> Handle(DeletePaymentCommand request, CancellationToken cancellationToken)

Parameters

request DeletePaymentCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Unit\>\>

Response from the request

Last modified: 21 May 2024