Example #1
0
        protected override void Setup()
        {
            ExitGames.Logging.LogManager.SetLoggerFactory(Log4NetLoggerFactory.Instance);

            var config = new FileInfo(Path.Combine(BinaryPath, "log4net.config"));
            if (config.Exists)
                XmlConfigurator.ConfigureAndWatch(config);
            else
                BasicConfigurator.Configure();

            _application = new MasterServerContext(new BinarySerializer());
            _application.Setup();

            Log.Info("Application Started!");
        }
Example #2
0
        protected override void Setup()
        {
            ExitGames.Logging.LogManager.SetLoggerFactory(Log4NetLoggerFactory.Instance);

            var config = new FileInfo(Path.Combine(BinaryPath, "log4net.config"));

            if (config.Exists)
            {
                XmlConfigurator.ConfigureAndWatch(config);
            }
            else
            {
                BasicConfigurator.Configure();
            }

            _application = new MasterServerContext(new BinarySerializer());
            _application.Setup();

            Log.Info("Application Started!");
        }
Example #3
0
 public Peer(InitRequest initRequest, MasterServerContext application) : base(initRequest)
 {
     _application = application;
 }
Example #4
0
 public Peer(InitRequest initRequest, MasterServerContext application)
     : base(initRequest)
 {
     _application = application;
 }