예제 #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!");
        }
예제 #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!");
        }
예제 #3
0
 public Peer(InitRequest initRequest, MasterServerContext application) : base(initRequest)
 {
     _application = application;
 }
예제 #4
0
 public Peer(InitRequest initRequest, MasterServerContext application)
     : base(initRequest)
 {
     _application = application;
 }