public SdlPolicyProvider( [NotNull] IPolicyRuleRepository policyRuleRepository, [NotNull] ITimeService timeService) { if (policyRuleRepository == null) { throw new ArgumentNullException(nameof(policyRuleRepository)); } if (timeService == null) { throw new ArgumentNullException(nameof(timeService)); } _policyRuleRepository = policyRuleRepository; _timeService = timeService; }
public PolicyCheckEventHandler( [NotNull] ITaskRepository taskRepository, [NotNull] IPolicyRuleRepository policyRuleRepository, [NotNull] IRuleExecutorDirector ruleExecutorDirector, [NotNull] IEventProvider eventProvider, [NotNull] IRuleParser ruleParser, [NotNull] ILog logger, [NotNull] ITelemetryScopeProvider telemetryScopeProvider) { if (taskRepository == null) { throw new ArgumentNullException(nameof(taskRepository)); } if (policyRuleRepository == null) { throw new ArgumentNullException(nameof(policyRuleRepository)); } if (ruleExecutorDirector == null) { throw new ArgumentNullException(nameof(ruleExecutorDirector)); } if (eventProvider == null) { throw new ArgumentNullException(nameof(eventProvider)); } if (ruleParser == null) { throw new ArgumentNullException(nameof(ruleParser)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (telemetryScopeProvider == null) { throw new ArgumentNullException(nameof(telemetryScopeProvider)); } _taskRepository = taskRepository; _policyRuleRepository = policyRuleRepository; _ruleExecutorDirector = ruleExecutorDirector; _eventProvider = eventProvider; _ruleParser = ruleParser; _logger = logger; _telemetryScopeProvider = telemetryScopeProvider; }
public ApiService( [NotNull] IUserAuthorityValidator userAuthorityValidator, [NotNull] ICommandDispatcher commandDispatcher, [NotNull] ITaskRepository taskRepository, [NotNull] IProjectRepository projectRepository, [NotNull] INotificationRuleRepository notificationRuleRepository, [NotNull] IProjectPluginSettingsProvider projectPluginSettingsProvider, [NotNull] IUserPrincipal userPrincipal, [NotNull] IUserPluginSettingsProvider userPluginSettingsProvider, [NotNull] IAuthorityProvider authorityProvider, [NotNull] IConfigurationProvider configurationProvider, [NotNull] IPolicyRuleRepository policyRuleRepository, [NotNull] IUserInfoProvider userInfoProvider, [NotNull] IMailConnectionParametersProvider mailConnectionParametersProvider, [NotNull] ITaskResultRepository taskResultRepository, [NotNull] IPluginFactory pluginFactory, [NotNull] IUserInterfaceChecker userInterfaceChecker, [NotNull] IDataQueryDispatcher dataQueryDispatcher, [NotNull] ISettingsHelper settingsHelper) { _userAuthorityValidator = userAuthorityValidator; _commandDispatcher = commandDispatcher; _taskRepository = taskRepository; _projectRepository = projectRepository; _notificationRuleRepository = notificationRuleRepository; _projectPluginSettingsProvider = projectPluginSettingsProvider; _userPrincipal = userPrincipal; _userPluginSettingsProvider = userPluginSettingsProvider; _authorityProvider = authorityProvider; _configurationProvider = configurationProvider; _policyRuleRepository = policyRuleRepository; _userInfoProvider = userInfoProvider; _mailConnectionParametersProvider = mailConnectionParametersProvider; _taskResultRepository = taskResultRepository; _pluginFactory = pluginFactory; _userInterfaceChecker = userInterfaceChecker; _dataQueryDispatcher = dataQueryDispatcher; _settingsHelper = settingsHelper; }