Owneat Technical Guide main Help

Class UpdateCustomerCommandHandler

Namespace: Ordering.Application.Requests.Handlers.Customer
Assembly: Ordering.Application.dll

public sealed class UpdateCustomerCommandHandler : IRequestHandler<UpdateCustomerCommand, Result<Customer>>

Inheritance

object ← UpdateCustomerCommandHandler

Implements

IRequestHandler<UpdateCustomerCommand, Result<Customer\>\>

Inherited Members

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

Constructors

UpdateCustomerCommandHandler\(ICustomerRepository, IUnitOfWork\)

public UpdateCustomerCommandHandler(ICustomerRepository customerRepository, IUnitOfWork unitOfWork)

Parameters

customerRepository ICustomerRepository

unitOfWork IUnitOfWork

Methods

Handle\(UpdateCustomerCommand, CancellationToken\)

Handles a request

public Task<Result<Customer>> Handle(UpdateCustomerCommand request, CancellationToken cancellationToken)

Parameters

request UpdateCustomerCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result<Customer\>\>

Response from the request

Last modified: 21 May 2024