Table of Contents

Class CreateModuleWithSubModulesCommandHandler

Namespace
KadicAuth.Application.Modules.Handlers
Assembly
KadicAuth.Application.dll
public sealed class CreateModuleWithSubModulesCommandHandler : IRequestHandler<CreateModuleWithSubModulesCommand, Guid>
Inheritance
object
CreateModuleWithSubModulesCommandHandler
Implements
IRequestHandler<CreateModuleWithSubModulesCommand, Guid>

Constructors

CreateModuleWithSubModulesCommandHandler(IModuleRepository, ISubModuleRepository, ITenantModuleRepository, ITenantSubModuleRepository, IStringLocalizer<AuthMessages>)

public CreateModuleWithSubModulesCommandHandler(IModuleRepository moduleRepository, ISubModuleRepository subModuleRepository, ITenantModuleRepository tenantModuleRepository, ITenantSubModuleRepository tenantSubModuleRepository, IStringLocalizer<AuthMessages> localizer)

Parameters

moduleRepository IModuleRepository
subModuleRepository ISubModuleRepository
tenantModuleRepository ITenantModuleRepository
tenantSubModuleRepository ITenantSubModuleRepository
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateModuleWithSubModulesCommand, CancellationToken)

Handles a request

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

Parameters

request CreateModuleWithSubModulesCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Guid>

Response from the request