public ScalingPartUploader(FilePartConfig partConfig, int concurrentWorkers,
                            Func <HttpRequestMessage, Task> executePartUploadRequest,
                            Action <int> updateProgress)
 {
     this.partConfig               = partConfig;
     this.concurrentWorkers        = concurrentWorkers;
     this.executePartUploadRequest = executePartUploadRequest;
     this.updateProgress           = updateProgress;
 }
Ejemplo n.º 2
0
 public FileUploaderConfig()
 {
     NumberOfThreads = DefaultNumberOfThreads;
     PartSize = DefaultPartSize;
     HttpTimeout = DefaultHttpTimeout;
     ThreadStartPauseInMS = DefaultThreadStartPauseInMS;
     UseRequestStreamBuffering = true;
     RequireChunksCompleteInOrder = false;
     PartConfig = new FilePartConfig();
 }
Ejemplo n.º 3
0
 public FileUploaderConfig()
 {
     NumberOfThreads              = DefaultNumberOfThreads;
     PartSize                     = DefaultPartSize;
     HttpTimeout                  = DefaultHttpTimeout;
     ThreadStartPauseInMS         = DefaultThreadStartPauseInMS;
     UseRequestStreamBuffering    = true;
     RequireChunksCompleteInOrder = false;
     PartConfig                   = new FilePartConfig();
 }
Ejemplo n.º 4
0
 public FileUploaderConfig()
 {
     NumberOfThreads              = DefaultNumberOfThreads;
     PartSize                     = DefaultPartSize;
     HttpTimeout                  = DefaultHttpTimeout;
     ThreadStartPauseInMS         = DefaultThreadStartPauseInMS;
     UseRequestStreamBuffering    = true;
     RequireChunksCompleteInOrder = false;
     PartConfig                   = new FilePartConfig();
     ProgressReportInterval       = TimeSpan.FromMilliseconds(DefaultProgressReportIntervalMilliseconds);
 }
Ejemplo n.º 5
0
 public ScalingPartUploader(
     FilePartConfig partConfig,
     int concurrentWorkers,
     Func <HttpRequestMessage, CancellationToken, Task> executePartUploadRequest,
     Action <long> updateProgress,
     LoggingProvider logger)
 {
     this.partConfig = partConfig;
     this.executePartUploadRequest = executePartUploadRequest;
     this.updateProgress           = updateProgress;
     this.logger          = logger;
     this.NumberOfThreads = concurrentWorkers;
 }
Ejemplo n.º 6
0
 public PartSizeCalculator(int concurrentWorkers, FilePartConfig partConfig)
 {
     this.concurrentWorkers = concurrentWorkers;
     this.partConfig        = partConfig;
 }