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