示例#1
0
        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;
        }
示例#2
0
        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);
        }