예제 #1
0
        /// <summary>
        /// 异步拷贝对象,封装了简单拷贝、分片拷贝功能。
        /// </summary>
        /// <param name="copyTask"></param>
        /// <returns></returns>
        public Task <COSXMLCopyTask.CopyTaskResult> CopyAsync(COSXMLCopyTask copyTask)
        {
            var task = copyTask.AsyncTask <COSXMLCopyTask.CopyTaskResult>();

            Copy(copyTask);
            return(task);
        }
예제 #2
0
 public void Copy(COSXMLCopyTask copy)
 {
     copy.InitCosXmlServer(cosXml);
     copy.SetDivision(transferConfig.DdivisionForCopy, transferConfig.SliceSizeForCopy);
     copy.Copy();
 }