Beispiel #1
0
        public OrganizationSettingsAccessorService(
            ICurrentOrganizationAccessorService currentOrganizationAccessorService,
            IOrganizationSettingsCache organizationSettingsCache)
        {
            _currentOrganizationAccessorService = currentOrganizationAccessorService ?? throw
                                                      new ArgumentNullException(nameof(currentOrganizationAccessorService));

            _organizationSettingsCache = organizationSettingsCache ?? throw
                                             new ArgumentNullException(nameof(organizationSettingsCache));
        }
Beispiel #2
0
        public OrganizationSettingsManagementService(
            ApplicationDbContext context,
            IOrganizationSettingsCache organizationSettingsCache,
            IOrganizationAccessControlService organizationAccessControlService)
        {
            _context = context ?? throw
                           new ArgumentNullException(nameof(context));

            _organizationSettingsCache = organizationSettingsCache ?? throw
                                             new ArgumentNullException(nameof(organizationSettingsCache));

            _organizationAccessControlService = organizationAccessControlService ?? throw
                                                    new ArgumentNullException(nameof(organizationAccessControlService));
        }
        public OrganizationSettingsController(
            IOrganizationSettingsCache organizationSettingsCache,
            IOrganizationSettingsManagementService organizationSettingsManagementService,
            IOrganizationSettingsRegistry organizationSettingsRegistry,
            IOrganizationRetrievalService organizationRetrievalService,
            IOrganizationAccessControlService organizationAccessControlService)
        {
            _organizationSettingsCache = organizationSettingsCache ?? throw
                                             new ArgumentNullException(nameof(organizationSettingsCache));

            _organizationSettingsManagementService = organizationSettingsManagementService ?? throw
                                                         new ArgumentNullException(nameof(organizationSettingsManagementService));

            _organizationSettingsRegistry = organizationSettingsRegistry ?? throw
                                                new ArgumentNullException(nameof(organizationSettingsRegistry));

            _organizationRetrievalService = organizationRetrievalService ?? throw
                                                new ArgumentNullException(nameof(organizationRetrievalService));

            _organizationAccessControlService = organizationAccessControlService ?? throw
                                                    new ArgumentNullException(nameof(organizationAccessControlService));
        }