public ITask UpdateLocks() { var task = GitClient.ListLocks(false) .Then(locks => { GitLocksUpdated?.Invoke(locks); }); return(HookupHandlers(task, false)); }
public void UpdateLocks() { GitClient.ListLocks(false) .Then((success, locks) => { if (success) { GitLocksUpdated?.Invoke(locks); } }) .Start(); }
public void UpdateLocks() { var task = GitClient.ListLocks(false); HookupHandlers(task, false, false); task.Then((success, locks) => { if (success) { GitLocksUpdated?.Invoke(locks); } }).Start(); }