Skip to content

Commit

Permalink
删除重复代码
Browse files Browse the repository at this point in the history
  • Loading branch information
konakonall committed Dec 18, 2020
1 parent 765f38e commit 9748424
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions QCloudCSharpSDK/COSXML/Transfer/COSXMLUploadTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,24 +177,6 @@ private void SimpleUpload()
putObjectRequest.SetCosStorageClass(StorageClass);
}

var task = cosXmlServer.ExecuteAsync<PutObjectResult>(putObjectRequest);
task.ContinueWith((taskResult) => {
if (taskResult.IsCompleted) {

if (UpdateTaskState(TaskState.Completed))
{
UploadTaskResult copyTaskResult = new UploadTaskResult();

copyTaskResult.SetResult(taskResult.Result);

if (successCallback != null)
{
successCallback(copyTaskResult);
}
}
}
});

cosXmlServer.PutObject(putObjectRequest, delegate (CosResult cosResult)
{
lock (syncExit)
Expand Down

0 comments on commit 9748424

Please sign in to comment.