This file is used for getting the taxonomy configuration information from the appSettings.json file These properties will subsequently used when getting the taxonomy information from SPO
コード例 #1
0
 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;
 }
コード例 #2
0
 /// <summary>
 /// Do validation stuff
 /// </summary>
 /// <param name="spList"></param>
 /// <param name="matterSettings"></param>
 /// <param name="errorSettings"></param>
 /// <param name="matterRespository"></param>
 /// <param name="listNames"></param>
 /// <param name="camlQueries"></param>
 public ValidationFunctions(ISPList spList, IOptions<MatterSettings> matterSettings,
     IOptions<ErrorSettings> errorSettings, IMatterRepository matterRespository,
     IOptions<ListNames> listNames, IOptions<CamlQueries> camlQueries, IOptions<GeneralSettings> generalSettings, IOptions<TaxonomySettings> taxonomySettings)
 {
     this.matterSettings = matterSettings.Value;
     this.spList = spList;
     this.errorSettings = errorSettings.Value;
     this.matterRespository = matterRespository;
     this.listNames = listNames.Value;
     this.camlQueries = camlQueries.Value;
     this.generalSettings = generalSettings.Value;
     this.taxonomySettings = taxonomySettings.Value;
 }
コード例 #3
0
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="taxonomySettings"></param>
 /// <param name="generalSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="taxonomyRepository"></param>
 public TaxonomyController(IOptions<ErrorSettings> errorSettings, 
     IOptions<TaxonomySettings> taxonomySettings, 
     IOptions<GeneralSettings> generalSettings,
     ISPOAuthorization spoAuthorization, 
     IMatterCenterServiceFunctions matterCenterServiceFunctions,
     ITaxonomyRepository taxonomyRepository, ICustomLogger customLogger, IOptions<LogTables> logTables)
 {
     this.errorSettings = errorSettings.Value;
     this.taxonomySettings = taxonomySettings.Value;
     this.generalSettings = generalSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;            
     this.taxonomyRepository = taxonomyRepository;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
 }
コード例 #4
0
ファイル: Taxonomy.cs プロジェクト: Microsoft/mattercenter
 /// <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;
 }