Class CreateModuleWithSubModulesCommandHandler
- Namespace
- KadicAuth.Application.Modules.Handlers
- Assembly
- KadicAuth.Application.dll
public sealed class CreateModuleWithSubModulesCommandHandler : IRequestHandler<CreateModuleWithSubModulesCommand, Guid>
- Inheritance
-
objectCreateModuleWithSubModulesCommandHandler
- Implements
Constructors
CreateModuleWithSubModulesCommandHandler(IModuleRepository, ISubModuleRepository, ITenantModuleRepository, ITenantSubModuleRepository, IStringLocalizer<AuthMessages>)
public CreateModuleWithSubModulesCommandHandler(IModuleRepository moduleRepository, ISubModuleRepository subModuleRepository, ITenantModuleRepository tenantModuleRepository, ITenantSubModuleRepository tenantSubModuleRepository, IStringLocalizer<AuthMessages> localizer)
Parameters
moduleRepositoryIModuleRepositorysubModuleRepositoryISubModuleRepositorytenantModuleRepositoryITenantModuleRepositorytenantSubModuleRepositoryITenantSubModuleRepositorylocalizerIStringLocalizer<AuthMessages>
Methods
Handle(CreateModuleWithSubModulesCommand, CancellationToken)
Handles a request
public Task<Guid> Handle(CreateModuleWithSubModulesCommand request, CancellationToken cancellationToken)
Parameters
requestCreateModuleWithSubModulesCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Guid>
Response from the request