Class AssignModulesWithSubModulesCommandHandler
- Namespace
- KadicAuth.Application.TenantModules.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class AssignModulesWithSubModulesCommandHandler : IRequestHandler<AssignModulesWithSubModulesCommand, Result<AssignModulesWithSubModulesResult>>
- Inheritance
-
objectAssignModulesWithSubModulesCommandHandler
- Implements
Constructors
AssignModulesWithSubModulesCommandHandler(ITenantModuleRepository, ITenantSubModuleRepository, ITenantRepository, IModuleRepository, ISubModuleRepository, IAuthUnitOfWork, ILogger<AssignModulesWithSubModulesCommandHandler>)
public AssignModulesWithSubModulesCommandHandler(ITenantModuleRepository tenantModuleRepository, ITenantSubModuleRepository tenantSubModuleRepository, ITenantRepository tenantRepository, IModuleRepository moduleRepository, ISubModuleRepository subModuleRepository, IAuthUnitOfWork unitOfWork, ILogger<AssignModulesWithSubModulesCommandHandler> logger)
Parameters
tenantModuleRepositoryITenantModuleRepositorytenantSubModuleRepositoryITenantSubModuleRepositorytenantRepositoryITenantRepositorymoduleRepositoryIModuleRepositorysubModuleRepositoryISubModuleRepositoryunitOfWorkIAuthUnitOfWorkloggerILogger<AssignModulesWithSubModulesCommandHandler>
Methods
Handle(AssignModulesWithSubModulesCommand, CancellationToken)
Handles a request
public Task<Result<AssignModulesWithSubModulesResult>> Handle(AssignModulesWithSubModulesCommand request, CancellationToken cancellationToken)
Parameters
requestAssignModulesWithSubModulesCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<AssignModulesWithSubModulesResult>>
Response from the request