Table of Contents

Class GetPlanByIdQueryHandler

Namespace
KadicAuth.Application.Plans.Queries
Assembly
KadicAuth.Application.dll
public sealed class GetPlanByIdQueryHandler : IRequestHandler<GetPlanByIdQuery, PlanDto?>
Inheritance
object
GetPlanByIdQueryHandler
Implements
IRequestHandler<GetPlanByIdQuery, PlanDto>

Constructors

GetPlanByIdQueryHandler(IPlanRepository)

public GetPlanByIdQueryHandler(IPlanRepository planRepository)

Parameters

planRepository IPlanRepository

Methods

Handle(GetPlanByIdQuery, CancellationToken)

Handles a request

public Task<PlanDto?> Handle(GetPlanByIdQuery request, CancellationToken cancellationToken)

Parameters

request GetPlanByIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<PlanDto>

Response from the request