Class GetAllPlansQueryHandler
- Namespace
- KadicAuth.Application.Plans.Queries
- Assembly
- KadicAuth.Application.dll
public sealed class GetAllPlansQueryHandler : IRequestHandler<GetAllPlansQuery, PaginatorResponseDto<PlanDto>>
- Inheritance
-
objectGetAllPlansQueryHandler
- Implements
Constructors
GetAllPlansQueryHandler(IPlanRepository)
public GetAllPlansQueryHandler(IPlanRepository planRepository)
Parameters
planRepositoryIPlanRepository
Methods
Handle(GetAllPlansQuery, CancellationToken)
Handles a request
public Task<PaginatorResponseDto<PlanDto>> Handle(GetAllPlansQuery request, CancellationToken cancellationToken)
Parameters
requestGetAllPlansQueryThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<PaginatorResponseDto<PlanDto>>
Response from the request