同步操作将从 ewin66/QueueSystem 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;using System.Diagnostics;using System.IO;using System.Threading;using System.Windows.Forms;using System.Runtime.Remoting;namespace MessageServer{static class Program{/// <summary>/// 应用程序的主入口点。/// </summary>[STAThread]static void Main(){bool createdNew = false;Mutex instance = new Mutex(true, Process.GetCurrentProcess().MainModule.FileName.Replace("\\", "/"), out createdNew);if (createdNew){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);AppDomain.CurrentDomain.UnhandledException += (s, e) =>{var err = e.ExceptionObject.ToString();MessageBox.Show(err, "未处理异常", MessageBoxButtons.OK, MessageBoxIcon.Error);File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "Exception.txt",string.Format("{0}\r\n{1}\r\n", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), err));};var remotingConfigPath = AppDomain.CurrentDomain.BaseDirectory + "Service.xml";RemotingConfiguration.Configure(remotingConfigPath, false);//Process.Start(AppDomain.CurrentDomain.BaseDirectory + "ServiceHost\\ServiceHost.exe", Process.GetCurrentProcess().Id.ToString());Application.Run(new FrmMain());instance.ReleaseMutex();}else{MessageBox.Show("消息服务器正在运行中!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);Application.Exit();}}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。