MongoShell *App::openShell(ConnectionSettings *connection, const ScriptInfo &scriptInfo) { MongoServer *server = openServer(connection, false); MongoShell *shell = new MongoShell(server,scriptInfo); _shells.push_back(shell); _bus->publish(new OpeningShellEvent(this, shell)); shell->execute(); return shell; }
void App::openShell(ConnectionSettings *connection, const ScriptInfo &scriptInfo) { MongoServer *server = openServerInternal(connection, ConnectionSecondary); if (!server) return; MongoShell *shell = new MongoShell(server, scriptInfo); _shells.push_back(shell); _bus->publish(new OpeningShellEvent(this, shell)); shell->execute(); return; }