Пример #1
0
        protected override void Setup()
        {
            // Setting Log folder path.
            log4net.GlobalContext.Properties["Photon:ApplicationLogPath"] = Path.Combine(this.ApplicationPath, "log");
            FileInfo file = new FileInfo(Path.Combine(this.BinaryPath, "log4net.config"));

            if (file.Exists)
            {
                LogManager.SetLoggerFactory(Log4NetLoggerFactory.Instance);
                XmlConfigurator.ConfigureAndWatch(file);
            }


            instance = this;
            // Setting base system.
            actorManager   = new ActorManager();
            cellManager    = new CellManager();
            requestManager = new RequestManager();

            Logger.Info("Server Setup Successful.......");
        }
Пример #2
0
 public ServerPeer(InitRequest initRequest, ServerApp serverApp) : base(initRequest)
 {
     peerGuid = Guid.NewGuid();
     _server  = serverApp;
     _server.actorManager.AddConenectPeer(peerGuid, this);
 }