public ServicePermissionCommandHanlder( [NotNull] IMediatorHandler bus, [NotNull] IUnitOfWork <ServicePermission> unitOfWork, [NotNull] IServicePermissionRepository servicePermissionRepository ) : base(unitOfWork, bus) { if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork)); } _bus = bus ?? throw new ArgumentNullException(nameof(bus)); _servicePermissionRepository = servicePermissionRepository ?? throw new ArgumentNullException(nameof(servicePermissionRepository)); }
public AuthorizeCommandHandler( [NotNull] IMediatorHandler bus, [NotNull] IUnitOfWork <ServicePermission> unitOfWork, [NotNull] IServicePermissionRepository servicePermissionRepository, [NotNull] IServiceDataRuleRepository serviceDataRuleRepository ) : base(unitOfWork, bus) { _bus = bus ?? throw new ArgumentNullException(nameof(bus)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _servicePermissionRepository = servicePermissionRepository ?? throw new ArgumentNullException(nameof(servicePermissionRepository)); _serviceDataRuleRepository = serviceDataRuleRepository ?? throw new ArgumentNullException(nameof(serviceDataRuleRepository)); }
public AuthorizationService( [NotNull] IStaticCacheManager cacheManager, [NotNull] IServiceDataRuleRepository serviceDataRuleRepository, [NotNull] IServicePermissionRepository servicePermissionRepository, [NotNull] IMediatorHandler bus, [NotNull] INotificationHandler <DomainNotification> notifications ) { _cacheManager = cacheManager ?? throw new ArgumentNullException(nameof(cacheManager)); _serviceDataRuleRepository = serviceDataRuleRepository ?? throw new ArgumentNullException(nameof(serviceDataRuleRepository)); _servicePermissionRepository = servicePermissionRepository ?? throw new ArgumentNullException(nameof(servicePermissionRepository)); _bus = bus ?? throw new ArgumentNullException(nameof(bus)); _notifications = notifications as DomainNotificationHandler ?? throw new ArgumentNullException(nameof(notifications)); }