Exemplo n.º 1
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();
        }