Owneat Technical Guide main Help

Class GetAllCustomersQueryHandler

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

public sealed class GetAllCustomersQueryHandler : IRequestHandler<GetAllCustomersQuery, Result<IEnumerable<Customer>>>

Inheritance

object ← GetAllCustomersQueryHandler

Implements

IRequestHandler<GetAllCustomersQuery, Result<IEnumerable<Customer\>\>\>

Inherited Members

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

Constructors

GetAllCustomersQueryHandler\(ICustomerRepository\)

public GetAllCustomersQueryHandler(ICustomerRepository customerRepository)

Parameters

customerRepository ICustomerRepository

Methods

Handle\(GetAllCustomersQuery, CancellationToken\)

Handles a request

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

Parameters

request GetAllCustomersQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< IEnumerable <Customer\>\>\>

Response from the request

Last modified: 21 May 2024