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