private void MainForm_Load(object sender, EventArgs e) { Configuration = new SipServerConfiguration(); ExecuteActionHelper.ExecuteAction(delegate() { FormsManager.Configure(this, _toolStripOpenedForms); }); }
void MainForm_Load(object sender, EventArgs e) { _lblPID.Text = string.Format("PID:{0}", Process.GetCurrentProcess().Id); Configuration = new ClientConfiguration(); var localIp4Address = Dns.GetHostAddresses(string.Empty).FirstOrDefault(a => a.AddressFamily == AddressFamily.InterNetwork); Configuration.OutboundProxyIpEndPoint = localIp4Address + ":33333"; Configuration.BindIpEndPoint = localIp4Address + ":" + (22220 + ProcessLogic.CountProcessesByName(Process.GetCurrentProcess().ProcessName)); ExecuteActionHelper.ExecuteAction(delegate() { FormsManager.Configure(this, _toolStripOpenedForms); }); }