public DownloadJobRunner(Credentials credentials, StorageSettings storageSettings)
 {
     _credentials = credentials;
    
     _httpClient = new ExHttpClient();
     
     _downloader = new FileDownloader();
     _storageAllocator = new StorageAllocator(storageSettings);
 }
Exemple #2
0
        public Storage(StorageSettings storageSettings, string fileName, bool startNew)
        {
            _basePath = storageSettings.BasePath;
            _fileName = fileName;

            _path = Path.Combine(_basePath, _fileName);

            if (startNew)
            {
                if (File.Exists(_path))
                {
                    File.Delete(_path);
                }
            }
        }
 public StorageAllocator(StorageSettings storageSettings)
 {
     _storageSettings = storageSettings;
 }