Updater.IUpdate.cs 473 B

1234567891011121314151617181920212223
  1. namespace Update.Core
  2. {
  3. partial class Updater
  4. {
  5. /// <summary>
  6. /// 开始异步更新
  7. /// </summary>
  8. public void StartUpdate()
  9. {
  10. this.CheckDisposed();
  11. this.ClientCheckAsync();
  12. }
  13. /// <summary>
  14. /// 停止异步更新
  15. /// </summary>
  16. public void StopUpdate()
  17. {
  18. this.CheckDisposed();
  19. this.m_Client.CancelAsync();
  20. }
  21. }
  22. }