public SiteAdminController(
            SiteManager siteManager,
            GeoDataManager geoDataManager,
            IOptions<MultiTenantOptions> multiTenantOptions,
            IOptions<UIOptions> uiOptionsAccessor,
            IOptions<LayoutSelectorOptions> layoutSeletorOptionsAccessor,
            ILayoutFileListBuilder layoutListBuilder
            //ConfigHelper configuration
            //, ITriggerStartup startupTrigger
            )
        {
            //if (siteResolver == null) { throw new ArgumentNullException(nameof(siteResolver)); }
            if (geoDataManager == null) { throw new ArgumentNullException(nameof(geoDataManager)); }
            //if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); }

            //config = configuration;
            this.multiTenantOptions = multiTenantOptions.Value;
            //Site = siteResolver.Resolve();

            this.siteManager = siteManager;
            this.geoDataManager = geoDataManager;
            uiOptions = uiOptionsAccessor.Value;
            this.layoutListBuilder = layoutListBuilder;
            layoutOptions = layoutSeletorOptionsAccessor.Value;

            //startup = startupTrigger;
        }
 public EnsureInitialDataSetupTask(
     IHttpContextAccessor contextAccessor,
     SiteManager siteManager,
     GeoDataManager geoDataManager)
 {
     this.siteManager = siteManager;
     this.contextAccessor = contextAccessor;
     this.geoDataManager = geoDataManager;
 }
 public ScopesController(
     SiteManager siteManager,
     ScopesManager scopesManager,
     IStringLocalizer<CloudscribeIntegration> localizer
     )
 {
     this.siteManager = siteManager;
     this.scopesManager = scopesManager;
     sr = localizer;
 }
        public ClientsController(
            SiteManager siteManager,
            ClientsManager clientsManager,
            IStringLocalizer<CloudscribeIntegration> localizer
            )
        {
            this.siteManager = siteManager;
            this.clientsManager = clientsManager;
            sr = localizer;

        }
        public UserAdminController(
            SiteManager siteManager,
            SiteUserManager<SiteUser> userManager,
            IOptions<UIOptions> uiOptionsAccessor
            )
        {
           
            UserManager = userManager;
            this.siteManager = siteManager;
            uiOptions = uiOptionsAccessor.Options;

        }
        public UserAdminController(
            SiteManager siteManager,
            SiteUserManager<SiteUser> userManager,
            IOptions<UIOptions> uiOptionsAccessor,
            IStringLocalizer<UserAdminController> localizer
            )
        {
           
            UserManager = userManager;
            this.siteManager = siteManager;
            uiOptions = uiOptionsAccessor.Value;

        }
        public UserAdminController(
            SiteManager siteManager,
            SiteUserManager<SiteUser> userManager,
            IOptions<UIOptions> uiOptionsAccessor,
            IHtmlLocalizer<CoreResources> localizer
            )
        {
           
            UserManager = userManager;
            this.siteManager = siteManager;
            uiOptions = uiOptionsAccessor.Value;
            this.localizer = localizer;

        }
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     SiteRoleManager<SiteRole> roleManager,
     IOptions<UIOptions> uiOptionsAccessor,
     IOptions<SetupOptions> setupOptionsAccessor
     )
 {
     UserManager = userManager;
     RoleManager = roleManager;
     this.siteManager = siteManager;
     uiOptions = uiOptionsAccessor.Value;
     setupOptions = setupOptionsAccessor.Value;
 }
Beispiel #9
0
 public SetupManager(
     IApplicationEnvironment appEnv,
     ILogger<SetupManager> logger,
     IOptions<SetupOptions> setupOptionsAccessor,
     IDb dbImplementation,
     IVersionProviderFactory versionProviderFactory,
     SiteManager siteManager)
 {
     appBasePath = appEnv.ApplicationBasePath;
     this.siteManager = siteManager;
     log = logger;
     db = dbImplementation;
     this.versionProviderFactory = versionProviderFactory;
     setupOptions = setupOptionsAccessor.Options;
 }
 public RoleAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     SiteRoleManager<SiteRole> roleManager,
     IStringLocalizer<CloudscribeCore> localizer,
     IOptions<UIOptions> uiOptionsAccessor,
     IOptions<SiteConfigOptions> setupOptionsAccessor
     )
 {
     UserManager = userManager;
     RoleManager = roleManager;
     this.siteManager = siteManager;
     uiOptions = uiOptionsAccessor.Value;
     setupOptions = setupOptionsAccessor.Value;
     sr = localizer;
 }
 public UserAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     ISiteMessageEmailSender emailSender,
     IOptions<UIOptions> uiOptionsAccessor,
     IStringLocalizer<CloudscribeCore> localizer,
     ITimeZoneIdResolver timeZoneIdResolver,
     ITimeZoneHelper timeZoneHelper
     )
 {
    
     UserManager = userManager;
     this.siteManager = siteManager;
     this.emailSender = emailSender;
     uiOptions = uiOptionsAccessor.Value;
     sr = localizer;
     this.timeZoneIdResolver = timeZoneIdResolver;
     tzHelper = timeZoneHelper;
 }
Beispiel #12
0
        public SetupController(
            IApplicationEnvironment appEnv,
            ILogger<SetupController> logger,
            IOptions<SetupOptions> setupOptionsAccessor,
            SetupManager setupManager,
            SiteManager siteManager 
        )
        {
            if (appEnv == null) { throw new ArgumentNullException(nameof(appEnv)); }
            if (logger == null) { throw new ArgumentNullException(nameof(logger)); }
            //if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); }
            if (setupManager == null) { throw new ArgumentNullException(nameof(setupManager)); }
            if (siteManager == null) { throw new ArgumentNullException(nameof(siteManager)); }

            //config = configuration;
            log = logger;
            appBasePath = appEnv.ApplicationBasePath;
            this.siteManager = siteManager;
            this.setupManager = setupManager;
            setupOptions = setupOptionsAccessor.Options;

        }
        public SiteAdminController(
            SiteManager siteManager,
            GeoDataManager geoDataManager,
            IOptions<MultiTenantOptions> multiTenantOptions,
            IOptions<UIOptions> uiOptionsAccessor,
            IThemeListBuilder layoutListBuilder,
            IStringLocalizer<CloudscribeCore> localizer,
            ITimeZoneHelper timeZoneHelper
            )
        {
            if (siteManager == null) { throw new ArgumentNullException(nameof(siteManager)); }
            if (geoDataManager == null) { throw new ArgumentNullException(nameof(geoDataManager)); }
            if (multiTenantOptions == null) { throw new ArgumentNullException(nameof(multiTenantOptions)); }

            this.multiTenantOptions = multiTenantOptions.Value;
            
            this.siteManager = siteManager;
            this.geoDataManager = geoDataManager;
            uiOptions = uiOptionsAccessor.Value;
            this.layoutListBuilder = layoutListBuilder;
            sr = localizer;
            tzHelper = timeZoneHelper;
        }
        public SiteAdminController(
            SiteManager siteManager,
            GeoDataManager geoDataManager,
            IOptions<MultiTenantOptions> multiTenantOptions,
            IOptions<UIOptions> uiOptionsAccessor
            //ConfigHelper configuration
            //, ITriggerStartup startupTrigger
            )
        {
            //if (siteResolver == null) { throw new ArgumentNullException(nameof(siteResolver)); }
            if (geoDataManager == null) { throw new ArgumentNullException(nameof(geoDataManager)); }
            //if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); }

            //config = configuration;
            this.multiTenantOptions = multiTenantOptions.Options;
            //Site = siteResolver.Resolve();

            this.siteManager = siteManager;
            this.geoDataManager = geoDataManager;
            uiOptions = uiOptionsAccessor.Options;

            //startup = startupTrigger;
        }
        public SiteAdminController(
            SiteManager siteManager,
            GeoDataManager geoDataManager,
            IOptions<MultiTenantOptions> multiTenantOptions,
            IOptions<UIOptions> uiOptionsAccessor,
            IOptions<LayoutSelectorOptions> layoutSeletorOptionsAccessor,
            ILayoutFileListBuilder layoutListBuilder
            )
        {
            if (siteManager == null) { throw new ArgumentNullException(nameof(siteManager)); }
            if (geoDataManager == null) { throw new ArgumentNullException(nameof(geoDataManager)); }
            if (multiTenantOptions == null) { throw new ArgumentNullException(nameof(multiTenantOptions)); }

            this.multiTenantOptions = multiTenantOptions.Value;
            
            this.siteManager = siteManager;
            this.geoDataManager = geoDataManager;
            uiOptions = uiOptionsAccessor.Value;
            this.layoutListBuilder = layoutListBuilder;
            layoutOptions = layoutSeletorOptionsAccessor.Value;

            //startup = startupTrigger;
        }