Beispiel #1
0
 public SPContentTypes(IOptions <ContentTypesConfig> contentTypesConfig, IOptions <CamlQueries> camlQueries,
                       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.configuration      = configuration;
 }
Beispiel #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;
 }
 /// <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;
 }
Beispiel #4
0
        /// <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;
        }