public async Task Cmd(CommandContext ctx, string name, string command) { await NotifyWorking(ctx, "Cmd " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.CmdProject(name, command, interactor, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }