private void MethodStopServer() { if (server != null) { Overall.lsocket.Clear(); server.Stop(); server.Dispose(); //this.GetMsgList.Items.Add("The Server is Close..."); SerilogHelper.Log4Debug("The server is Close ....", Outputoption.Info); this.SettingBtn.Enabled = true; } Overall.ListIP.Clear(); }
public void Stop() { _server.Stop(); _q.StopServer(); }