private void CheckForUpdatesAsync() { // Prevent user from checking for updates while another check is already in progress _updatesButtonClickAction = null; var task = new TaskBuilder() .OnCurrentThread() .BeforeStart(OnBeforeStart) .DoWork(OnDoWork) .Fail(OnFail) .Succeed(OnSucceed) .Build(); task.Start(); }