/// <summary> /// Shut Down Server /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ShutDownToolStripMenuItem_Click(object sender, EventArgs e) { if (!MyMessageBox.ShowConfirm("ShutDown Server", "Are you sure to shutDown the Server?")) { return; } MongoServer mongoSvr = SystemManager.GetCurrentServer(); try { //the server will be shutdown with exception MongoDbHelper._mongoConnSvrLst.Remove(SystemManager.SelectTagData); mongoSvr.Shutdown(); } catch (IOException) { //if IOException,ignore it } catch (Exception ex) { SystemManager.ExceptionDeal(ex); } trvsrvlst.Nodes.Remove(trvsrvlst.SelectedNode); RefreshToolStripMenuItem_Click(sender, e); }
public void Shutdown() { _mongoServer.Shutdown(); }
public void Shutdown() { client = null; server.Shutdown(); mdb = null; }
public void Shutdown() { mongoClient = null; mongoServer.Shutdown(); mongoDb = null; }
public void Shutdown() { server.Shutdown(); client = null; db = null; }