Table of Contents

Class CreateSubModuleCommandHandler

Namespace
KadicAuth.Application.SubModules.Handlers
Assembly
KadicAuth.Application.dll
public sealed class CreateSubModuleCommandHandler : IRequestHandler<CreateSubModuleCommand, Result<Guid>>
Inheritance
object
CreateSubModuleCommandHandler
Implements
IRequestHandler<CreateSubModuleCommand, Result<Guid>>

Constructors

CreateSubModuleCommandHandler(ISubModuleRepository, IModuleRepository, IStringLocalizer<AuthMessages>)

public CreateSubModuleCommandHandler(ISubModuleRepository repository, IModuleRepository moduleRepository, IStringLocalizer<AuthMessages> localizer)

Parameters

repository ISubModuleRepository
moduleRepository IModuleRepository
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateSubModuleCommand, CancellationToken)

Handles a request

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

Parameters

request CreateSubModuleCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<Guid>>

Response from the request