Exemplo n.º 1
0
        protected HesManager(HELLION hellion, Server server)
        {
            m_hellion = hellion;
            m_server  = server;

            m_log = LogManager.GetCurrentClassLogger();
        }
        internal void Run(string[] args)
        {
            var hellion = new HELLION();

            hellion.Load();

            if (this.RunningAsService)
            {
                // things to do only when hes is being ran as a service
            }
            else
            {
                Log.Info("It's working!");

                // temp, replace with command reader
                while (true)
                {
                    System.Threading.Thread.Sleep(1000);
                }
            }
        }
Exemplo n.º 3
0
        public ServerInstance(HELLION hellion)
        {
            WCFService.Init(true);


            m_managers = new List <HesManager>();

            m_instance = this;

            m_hellion = hellion;

            hellion.OnServerStarted += OnServerStarted;
            hellion.OnServerStopped += OnServerStopped;

            WCFService.CreateServiceHost(typeof(ServerService), typeof(IServerService), "Server", "");

            CreateManagers();

            WCFService.Start();

            //TODO: this is temp! will be controlled via the manager or
            StartServer();
        }
Exemplo n.º 4
0
 public ChatManager(HELLION hellion, Server server)
     : base(hellion, server)
 {
 }