public static void RunServerInThread(Assembly Assembly, BaseServer server)
        {
            var thread = new Thread(() => {
                var config = ServerUtil.LoadConfig();
                ServerUtil.RunServer(Assembly, server, config);
            });

            thread.Start();
        }
 public virtual void DoAwake(ServerConfigInfo info)
 {
     IP                    = NetworkHelper.GetLocalIP();
     serverType            = info.type;
     _allConfig            = ServerUtil.LoadConfig();
     _allConfig.daemonPort = _allConfig.GetServerConfig(EServerType.DaemonServer).serverPort;
     _serverConfig         = info;
     masterType            = _allConfig.isMaster ? EMasterType.Master : EMasterType.Slave;
 }
 public virtual void DoAwake(ServerConfigInfo info)
 {
     Debug                 = new DebugInstance(GetType().Name + ": ");
     HasInit               = true;
     Ip                    = NetworkHelper.GetLocalIP();
     serverType            = info.type;
     _allConfig            = ServerUtil.LoadConfig();
     _allConfig.DeamonPort = _allConfig.GetServerConfig(EServerType.DaemonServer).serverPort;
     _serverConfig         = info;
     masterType            = _allConfig.isMaster ? EMasterType.Master : EMasterType.Slave;
 }