public SPContentTypes(IOptions<ContentTypesConfig> contentTypesConfig, IOptions<CamlQueries> camlQueries, ISPList spList, ICustomLogger customLogger, IOptions<LogTables> logTables, IOptions<TaxonomySettings> taxonomySettings, IConfigurationRoot configuration ) { this.contentTypesConfig = contentTypesConfig.Value; this.taxonomySettings = taxonomySettings.Value; this.customLogger = customLogger; this.logTables = logTables.Value; this.camlQueries = camlQueries.Value; this.spList = spList; this.configuration = configuration; }
/// <summary> /// Constructor to inject required dependencies /// </summary> /// <param name="generalSettings"></param> /// <param name="taxonomySettings"></param> /// <param name="logTables"></param> /// <param name="spoAuthorization"></param> /// <param name="customLogger"></param> public Taxonomy(IOptions<GeneralSettings> generalSettings, IOptions<TaxonomySettings> taxonomySettings, IOptions<ContentTypesConfig> contentTypeSettings, IOptions<LogTables> logTables, ISPOAuthorization spoAuthorization, ICustomLogger customLogger, IConfigurationRoot configuration) { this.generalSettings = generalSettings.Value; this.taxonomySettings = taxonomySettings.Value; this.contentTypeSettings = contentTypeSettings.Value; this.logTables = logTables.Value; this.spoAuthorization = spoAuthorization; taxonomyResponseVM = new TaxonomyResponseVM(); this.customLogger = customLogger; this.configuration = configuration; }