Exemple #1
0
        static void Main(string[] args)
        {
            //LJC.Com.LogService.Contract.NetLogHelper.SendLog(new LJC.Com.LogService.Contract.LogInfo
            //{
            //    Info = "服务启动",
            //    Level = LJC.Com.LogService.Contract.LogLevel.Info,
            //    LogFrom = "ESB",
            //    LogTime = DateTime.Now,
            //    LogTitle = "esb3服务启动",
            //    LogType = LJC.Com.LogService.Contract.LogType.Service,
            //    StackTrace = ""
            //});

            int port = int.Parse(LJC.FrameWork.Comm.ConfigHelper.AppConfig("ServerPort"));

            LJC.FrameWork.SOA.ESBServer esb = new LJC.FrameWork.SOA.ESBServer(port);
            esb.Error += new Action <Exception>(esb_Error);
            esb.StartServer();
            Console.Read();
        }
Exemple #2
0
        protected override void OnStart(string[] args)
        {
            // TODO: 在此处添加代码以启动服务。
            //LJC.FrameWork.LogManager.Logger.Init();
            int port = int.Parse(LJC.FrameWork.Comm.ConfigHelper.AppConfig("ServerPort"));

            LJC.FrameWork.SOA.ESBServer esb = new LJC.FrameWork.SOA.ESBServer(port);
            esb.Error += new Action <Exception>(esb_Error);
            esb.StartServer();

            //LJC.Com.LogService.Contract.NetLogHelper.SendLog(new LJC.Com.LogService.Contract.LogInfo
            //{
            //    Info = "服务启动",
            //    Level = LJC.Com.LogService.Contract.LogLevel.Info,
            //    LogFrom = "ESB",
            //    LogTime = DateTime.Now,
            //    LogTitle = "esb服务启动",
            //    LogType = LJC.Com.LogService.Contract.LogType.Service,
            //    StackTrace = ""
            //});
        }