public ITask LockFile(NPath file) { var task = GitClient.Lock(file) .Then(() => DataNeedsRefreshing?.Invoke(CacheType.GitLocks)); return(HookupHandlers(task, false)); }