Example #1
0
        protected override void OnStart(string[] args)
        {
            Log4NetEventLogImpl log4NetEventLogImpl = new Log4NetEventLogImpl();

            log4NetEventLogImpl.Info("Glue4Net Server Copyright @ henryfan 2014 Version " + typeof(Glue4NetService).Assembly.GetName().Version);
            log4NetEventLogImpl.Info("Website:http://www.ikende.com");
            log4NetEventLogImpl.Info("Email:[email protected]");
            this.mContainer     = new DomainContainer();
            this.mContainer.Log = new Log4NetEventLogImpl();
            this.mContainer.LoadConfig("containerSection");
            this.mContainer.Open();
        }
Example #2
0
        private static void Main(string[] args)
        {
            Log4NetEventLogImpl log4NetEventLogImpl = new Log4NetEventLogImpl();

            log4NetEventLogImpl.Info("Glue4Net Console Copyright @ henryfan 2014 Version " + typeof(Program).Assembly.GetName().Version);
            log4NetEventLogImpl.Info("Website:http://www.ikende.com");
            log4NetEventLogImpl.Info("Email:[email protected]");
            mContainer     = new DomainContainer();
            mContainer.Log = log4NetEventLogImpl;
            mContainer.LoadConfig("containerSection");
            mContainer.Open();
            Thread.Sleep(-1);
        }