Table of Contents

Class UpdatePlanCommandHandler

Namespace
KadicAuth.Application.Plans.Commands
Assembly
KadicAuth.Application.dll
public sealed class UpdatePlanCommandHandler : IRequestHandler<UpdatePlanCommand, Result>
Inheritance
object
UpdatePlanCommandHandler
Implements
IRequestHandler<UpdatePlanCommand, Result>

Constructors

UpdatePlanCommandHandler(IPlanRepository, ILogger<UpdatePlanCommandHandler>, IStringLocalizer<AuthMessages>)

public UpdatePlanCommandHandler(IPlanRepository planRepository, ILogger<UpdatePlanCommandHandler> logger, IStringLocalizer<AuthMessages> localizer)

Parameters

planRepository IPlanRepository
logger ILogger<UpdatePlanCommandHandler>
localizer IStringLocalizer<AuthMessages>

Methods

Handle(UpdatePlanCommand, CancellationToken)

Handles a request

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

Parameters

request UpdatePlanCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result>

Response from the request