This file is used for getting the document configuration information from the appSettings.json file These properties will subsequently used when getting the document information from SPO
コード例 #1
0
 public UploadHelperFunctions(ISPOAuthorization spoAuthorization, IOptions<ErrorSettings> errorSettings, IUserRepository userRepositoy,
     
     IDocumentRepository documentRepository, IOptions<DocumentSettings> documentSettings, IUploadHelperFunctionsUtility uploadHelperFunctionsUtility)
 {
     this.spoAuthorization = spoAuthorization;
     this.errorSettings = errorSettings.Value;
     this.documentRepository = documentRepository;
     this.documentSettings = documentSettings.Value;
     this.uploadHelperFunctionsUtility = uploadHelperFunctionsUtility;
     this.userRepositoy = userRepositoy;            
 }
コード例 #2
0
 /// <summary>
 /// Controlls the functionality for email related.
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="customLogger"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="logTables"></param>
 /// <param name="documentProvision"></param>
 /// <param name="documentSettings"></param>
 public EmailController(IOptions<ErrorSettings> errorSettings,
     ICustomLogger customLogger,             
     IMatterCenterServiceFunctions matterCenterServiceFunctions, 
     IOptions<LogTables> logTables, IDocumentProvision documentProvision,            
     IOptions<DocumentSettings> documentSettings)
 {            
     this.errorSettings = errorSettings.Value;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.documentProvision = documentProvision;
     this.documentSettings = documentSettings.Value;       
 }
コード例 #3
0
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="documentSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="documentRepositoy"></param>
 public DocumentController(IOptions<ErrorSettings> errorSettings,
     IOptions<DocumentSettings> documentSettings,
     ISPOAuthorization spoAuthorization,
     IMatterCenterServiceFunctions matterCenterServiceFunctions,
     IDocumentRepository documentRepositoy,
     ICustomLogger customLogger, IOptions<LogTables> logTables
     )
 {
     this.errorSettings = errorSettings.Value;
     this.documentSettings = documentSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.documentRepositoy = documentRepositoy;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
 }
コード例 #4
0
        /// <summary>
        /// DcouemtsController Constructor where all the required dependencies are injected
        /// </summary>
        /// <remarks></remarks>        /// 
        /// <param name="errorSettings"></param>
        /// <param name="documentSettings"></param>
        /// <param name="matterCenterServiceFunctions"></param>
        /// <param name="documentRepositoy"></param>
        /// <param name="customLogger"></param>
        /// <param name="logTables"></param>
        /// <param name="documentProvision"></param>
        /// <param name="generalSettings"></param>
        public DocumentController(IOptions<ErrorSettings> errorSettings,
            IOptions<DocumentSettings> documentSettings,            
            IMatterCenterServiceFunctions matterCenterServiceFunctions,
            IDocumentRepository documentRepositoy,
            ICustomLogger customLogger, IOptions<LogTables> logTables, IDocumentProvision documentProvision,
            IOptions<GeneralSettings> generalSettings

            )
        {
            this.errorSettings = errorSettings.Value;
            this.documentSettings = documentSettings.Value;            
            this.matterCenterServiceFunctions = matterCenterServiceFunctions;
            this.documentRepositoy = documentRepositoy;
            this.customLogger = customLogger;
            this.logTables = logTables.Value;
            this.documentProvision = documentProvision;
            this.generalSettings = generalSettings.Value;
        }
コード例 #5
0
 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;
 }