Ejemplo n.º 1
0
        public static void UploadFile(string filePath, string destFileName, IBackgroundWorkContext context)
        {
            //if (DestinationStreamCreator == null)
            //{
            //    throw new InvalidOperationException("未设置DestinationStreamCreator。");
            //}

            //FileUploader.UploadFile(filePath, destFileName, (i, s) => context.SetProgress(i, s));
            FileUploader.UploadFile2(filePath, destFileName, (i, s) => context.SetProgress(i, s));
        }
Ejemplo n.º 2
0
 public void UploadFile(string filePath, string destFileName, IBackgroundWorkContext context)
 {
     _fileUploader.UploadFile(filePath, destFileName, (i, s) => context.SetProgress(i, s));
 }