public AsyncScalingFileUploader(ShareFileClient client, UploadSpecificationRequest uploadSpecificationRequest, IPlatformFile file, FileUploaderConfig config = null, int?expirationDays = null) : base(client, uploadSpecificationRequest, file, config, expirationDays) { UploadSpecificationRequest.Raw = true; var chunkConfig = config != null ? config.PartConfig : new FilePartConfig(); partUploader = new ScalingPartUploader(chunkConfig, Config.NumberOfThreads, ExecuteChunkUploadMessage, OnProgress); }
public ScalingFileUploader(ShareFileClient client, UploadSpecificationRequest uploadSpecificationRequest, IPlatformFile file, FileUploaderConfig config = null, int?expirationDays = null) : base(client, uploadSpecificationRequest, file, config, expirationDays) { UploadSpecificationRequest.Raw = true; var partConfig = config != null ? config.PartConfig : new FilePartConfig(); partUploader = new ScalingPartUploader(partConfig, Config.NumberOfThreads, requestMessage => Task.Factory.StartNew(() => ExecuteChunkUploadMessage(requestMessage)), OnProgress); }
public AsyncScalingFileUploader( ShareFileClient client, UploadSpecificationRequest uploadSpecificationRequest, Stream stream, FileUploaderConfig config = null, int?expirationDays = null) : base(client, uploadSpecificationRequest, stream, config, expirationDays) { var chunkConfig = config != null ? config.PartConfig : new FilePartConfig(); partUploader = new ScalingPartUploader( chunkConfig, Config.NumberOfThreads, ExecuteChunkUploadMessage, progressReporter.ReportProgress, client.Logging); }
public ScalingFileUploader( ShareFileClient client, UploadSpecificationRequest uploadSpecificationRequest, Stream stream, FileUploaderConfig config = null, int?expirationDays = null) : base(client, uploadSpecificationRequest, stream, config, expirationDays) { var partConfig = config != null ? config.PartConfig : new FilePartConfig(); partUploader = new ScalingPartUploader( partConfig, Config.NumberOfThreads, (requestMessage, cancelToken) => Task.Factory.StartNew(() => ExecuteChunkUploadMessage(requestMessage, cancelToken)), progressReporter.ReportProgress, client.Logging); }