public UploadFilesController( IFileManagementServices fileManagementServices, IZipServices zipServices, IEncryptionServices encryptionServices, IDataManagementSystemCallerServices dataManagementSystemCallerServices, IConfiguration configuration) { _fileManagementServices = fileManagementServices; _zipServices = zipServices; _encryptionServices = encryptionServices; _dataManagementSystemCallerServices = dataManagementSystemCallerServices; //get constants from conf var defaultFileManagementServiceUrl = configuration[_fileManagementServiceUrlFieldName]; _fileManagementServiceUrl = string.IsNullOrEmpty(defaultFileManagementServiceUrl) ? _defaultFileManagementServiceUrl : defaultFileManagementServiceUrl; }
public ReceiveController( IEncryptionServices encryptionServices, IZipServices zipServices, IFileManagementServices fileManagementServices, IPersistenceServices persistenceServices, IConfiguration configuration) { _encryptionServices = encryptionServices; _zipServices = zipServices; _fileManagementServices = fileManagementServices; _persistenceServices = persistenceServices; _configuration = configuration; var persistFiles = configuration[_persistFilesFieldName]; persistFiles = string.IsNullOrEmpty(persistFiles) ? _defaultPersistFiles : persistFiles; // if not in conf, defautl 'default key' _persistFiles = bool.Parse(persistFiles); }