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