C# cancelling DoWork of background worker

前端 未结 4 1702
春和景丽
春和景丽 2021-02-06 15:50

C# 2008

I am using the code below to login to a softphone. However, the login progess is a long process as there are many things that have to be initialized and checks t

4条回答
  •  别跟我提以往
    2021-02-06 16:03

    There is one thing I don't need to call the this.bgwProcessLogin.CancelAsync(); as you can just set this e.Cancel = true;

提交回复
热议问题