示例#1
0
 public MonitorThread(RegistryCenter regCenter)
 {
     m_RegistryCenter = regCenter;
     m_MonitorThread  = new Thread(x =>
     {
         DoWork();
     });
 }
示例#2
0
 public MonitorThread(RegistryCenter regCenter)
 {
     m_RegistryCenter = regCenter;
     m_MonitorThread = new Thread(x =>
     {
         DoWork();
     });
 }
示例#3
0
        protected override void OnStart(string[] args)
        {
            XTrace.WriteLine("注册中心服务启动。");

            try
            {
                RegistryCenter registryCenter = new RegistryCenter();
            }
            catch (Exception ex)
            {
                XTrace.WriteLine("注册中心服务启动失败:" + ex.ToString());
            }
        }
示例#4
0
        protected override void OnStart(string[] args)
        {
            XTrace.WriteLine("注册中心服务启动。");

            try
            {
                RegistryCenter registryCenter = new RegistryCenter();
            }
            catch (Exception ex)
            {
                XTrace.WriteLine("注册中心服务启动失败:" + ex.ToString());
            }
        }
示例#5
0
文件: Program.cs 项目: rebider/soa
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            /*ServiceBase[] ServicesToRun;
             * ServicesToRun = new ServiceBase[]
             *          {
             *                  new RegistryService()
             *          };
             * ServiceBase.Run(ServicesToRun);*/

            XTrace.WriteLine("注册中心服务启动。");

            try
            {
                RegistryCenter registryCenter = new RegistryCenter();
                registryCenter.Start();

                Console.ReadKey();
            }
            catch (Exception ex)
            {
                XTrace.WriteLine("注册中心服务启动失败:" + ex.ToString());
            }
        }
示例#6
0
文件: Program.cs 项目: vebin/soa
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {

            /*ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
			{ 
				new RegistryService() 
			};
            ServiceBase.Run(ServicesToRun);*/

            XTrace.WriteLine("注册中心服务启动。");

            try
            {
                RegistryCenter registryCenter = new RegistryCenter();
                registryCenter.Start();

                Console.ReadKey();
            }
            catch (Exception ex)
            {
                XTrace.WriteLine("注册中心服务启动失败:" + ex.ToString());
            }
        }
示例#7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="regCenter">注册中心</param>
 public MessageProcessor(RegistryCenter regCenter)
 {
     m_RegistryCenter = regCenter;
 }
示例#8
0
 public MessageProcessor(RegistryCenter regCenter)
 {
     m_RegistryCenter = regCenter;
 }