This file is used for getting the search configuration information from the appSettings.json file These properties will subsequently used when getting the matter information from SPO
Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 /// <param name="searchSettings"></param>
 public Search(ISPOAuthorization spoAuthorization,
     IConfigurationRoot configuration,
     ICustomLogger customLogger,
     IUsersDetails userDetails,
     ISPList spList,
     IOptions<GeneralSettings> generalSettings,
     IOptions<SharedSettings> sharedSettings,
     IOptions<LogTables> logTables,
     IOptions<SearchSettings> searchSettings,
     IOptions<CamlQueries> camlQueries,
     IOptions<ListNames> listNames,
     IOptions<ErrorSettings> errorSettings)
 {
     this.spoAuthorization = spoAuthorization;
     this.generalSettings = generalSettings.Value;
     this.searchSettings = searchSettings.Value;
     this.userDetails = userDetails;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.spList = spList;
     this.camlQueries = camlQueries.Value;
     this.listNames = listNames.Value;
     this.sharedSettings = sharedSettings.Value;
     this.errorSettings = errorSettings.Value;
     this.configuration = configuration;
 }
 public DocumentProvision(IDocumentRepository docRepository, 
     IUserRepository userRepository, 
     IUploadHelperFunctions uploadHelperFunctions, 
     IOptions<GeneralSettings> generalSettings, 
     IOptions<DocumentSettings> documentSettings, 
     ICustomLogger customLogger,
     IOptions<SearchSettings> searchSettings,
     IConfigurationRoot configuration,
     IHttpContextAccessor httpContextAccessor,
     IOptions<LogTables> logTables, IOptions<ErrorSettings> errorSettings)
 {
     this.docRepository = docRepository;
     this.uploadHelperFunctions = uploadHelperFunctions;
     this.userRepository = userRepository;
     this.generalSettings = generalSettings.Value;
     this.documentSettings = documentSettings.Value;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.errorSettings = errorSettings.Value;
     this.searchSettings = searchSettings.Value;
     this.configuration = configuration;
     this.httpContextAccessor = httpContextAccessor;
 }
Example #3
0
 /// <summary>
 /// All the dependencies are injected into the constructor
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 public SPList(ISPOAuthorization spoAuthorization,
     IOptions<CamlQueries> camlQueries, 
     IOptions<ErrorSettings> errorSettings,
     IOptions<SearchSettings> searchSettings,
     IOptions<ContentTypesConfig> contentTypesConfig,
     ICustomLogger customLogger, 
     IOptions<LogTables> logTables, 
     IOptions<MailSettings> mailSettings,
     IOptions<GeneralSettings> generalSettings,
     IHostingEnvironment hostingEnvironment, 
     IUsersDetails userDetails)
 {
     this.searchSettings = searchSettings.Value;
     this.camlQueries = camlQueries.Value;
     this.spoAuthorization = spoAuthorization;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.mailSettings = mailSettings.Value;
     this.hostingEnvironment = hostingEnvironment;
     this.errorSettings = errorSettings.Value;
     this.userDetails = userDetails;
     this.generalSettings = generalSettings.Value;
 }
 /// <summary>
 /// Constructor where all the dependencies are injected
 /// </summary>
 /// <param name="matterRepositoy"></param>
 /// <param name="matterSettings"></param>
 /// <param name="errorSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="editFunctions"></param>
 /// <param name="validationFunctions"></param>
 /// <param name="customLogger"></param>
 /// <param name="logTables"></param>
 /// <param name="mailSettings"></param>
 /// <param name="camlQueries"></param>
 /// <param name="listNames"></param>
 /// <param name="generalSettings"></param>
 /// <param name="searchSettings"></param>
 /// <param name="userRepositoy"></param>
 /// <param name="externalSharing"></param>
 /// <param name="configuration"></param>
 /// <param name="userDetails"></param>
 public MatterProvision(IMatterRepository matterRepositoy, IOptions<MatterSettings> matterSettings,
     IOptions<ErrorSettings> errorSettings,
     ISPOAuthorization spoAuthorization, IEditFunctions editFunctions, IValidationFunctions validationFunctions,
     ICustomLogger customLogger, IOptions<LogTables> logTables,
     IOptions<MailSettings> mailSettings,
     IOptions<CamlQueries> camlQueries,
     IOptions<ListNames> listNames,
     IOptions<GeneralSettings> generalSettings,
     IOptions<SearchSettings> searchSettings, IUserRepository userRepositoy, 
     IExternalSharing externalSharing, IConfigurationRoot configuration, IUsersDetails userDetails
     )
 {
     this.matterRepositoy = matterRepositoy;
     this.matterSettings = matterSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.editFunctions = editFunctions;
     this.errorSettings = errorSettings.Value;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.validationFunctions = validationFunctions;
     this.mailSettings = mailSettings.Value;
     this.camlQueries = camlQueries.Value;
     this.listNames = listNames.Value;
     this.searchSettings = searchSettings.Value;
     this.userRepositoy = userRepositoy;
     this.externalSharing = externalSharing;
     this.configuration = configuration;
     this.userDetails = userDetails;
     this.generalSettings = generalSettings.Value;
 }