/// <summary> /// ConfigRepository with all the required dependency injections inserted /// </summary> /// <param name="generalSettings"></param> /// <param name="configSettings"></param> public ConfigRepository(ISPOAuthorization spoAuthorization, IOptions<GeneralSettings> generalSettings, IOptions<UIConfigSettings> configSettings) { this.generalSettings = generalSettings.Value; this.configSettings = configSettings.Value; this.spoAuthorization = spoAuthorization; }
/// <summary> /// Constructor where all the required dependencies are injected /// </summary> /// <param name="errorSettings"></param> /// <param name="generalSettings"></param> /// <param name="uiConfigSettings"></param> /// <param name="configRepository"></param> /// <param name="logTables"></param> /// <param name="hostingEnvironment"></param> /// <param name="matterCenterServiceFunctions"></param> public ConfigController(IOptions<ErrorSettings> errorSettings, IOptions<GeneralSettings> generalSettings, IOptions<UIConfigSettings> uiConfigSettings, IOptions<LogTables> logTables, IMatterCenterServiceFunctions matterCenterServiceFunctions, IConfigRepository configRepository, IHostingEnvironment hostingEnvironment ) { this.errorSettings = errorSettings.Value; this.matterCenterServiceFunctions = matterCenterServiceFunctions; this.configRepository = configRepository; this.generalSettings = generalSettings.Value; this.uiConfigSettings = uiConfigSettings.Value; this.hostingEnvironment = hostingEnvironment; }