Пример #1
0
        public UpdateProjectPluginSettingsCommandHandler(
            [NotNull] IUserAuthorityValidator userAuthorityValidator,
            [NotNull] IWriteRepository <Projects> repositoryProjects,
            [NotNull] ITimeService timeService,
            [NotNull] IUnitOfWork unitOfWork,
            [NotNull] IUserPrincipal userPrincipal,
            [NotNull] IProjectPluginSettingsProvider projectPluginSettingsProvider,
            [NotNull] IPluginRepository pluginRepository)
            : base(
                userAuthorityValidator,
                repositoryProjects,
                timeService,
                unitOfWork,
                userPrincipal)
        {
            if (projectPluginSettingsProvider == null)
            {
                throw new ArgumentNullException(nameof(projectPluginSettingsProvider));
            }
            if (pluginRepository == null)
            {
                throw new ArgumentNullException(nameof(pluginRepository));
            }

            _projectPluginSettingsProvider = projectPluginSettingsProvider;
            _pluginRepository = pluginRepository;
        }
Пример #2
0
 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;
 }