Beispiel #1
0
 public void SpawnAutoHost(AhConfig config, SpawnConfig spawnData)
 {
     lock (autoHosts)
     {
         var ah = new AutoHost(MetaCache, config, GetFreeHostingPort(), spawnData);
         autoHosts.Add(ah);
         ah.ServerVerifyMap(true);
     }
 }
Beispiel #2
0
        public AutoHost SpawnAutoHost(AhConfig config, SpawnConfig spawnData)
        {
            AutoHost ah;

            lock (autoHosts)
            {
                ah = new AutoHost(MetaCache, config, GetFreeHostingPort(), spawnData);
                autoHosts.Add(ah);
            }
            return(ah);
        }
Beispiel #3
0
        public AutoHost SpawnAutoHost(AhConfig config, SpawnConfig spawnData)
        {
            AutoHost ah;

            lock (autoHosts)
            {
                ah = new AutoHost(MetaCache, config, GetFreeHostingPort(), spawnData);
                var otherClone = autoHosts.Where(x => x.config.Login == config.Login).Max(x => (int?)x.CloneNumber);
                if (otherClone.HasValue)
                {
                    ah.CloneNumber = otherClone.Value + 1;
                }

                autoHosts.Add(ah);
            }
            return(ah);
        }
 public AutoHost SpawnAutoHost(AhConfig config, SpawnConfig spawnData)
 {
     AutoHost ah;
     lock (autoHosts)
     {
         ah = new AutoHost(MetaCache, config, GetFreeHostingPort(), spawnData);
         autoHosts.Add(ah);
     }
     return ah;
 }
 public AutoHost SpawnAutoHost(AhConfig config, SpawnConfig spawnData)
 {
     AutoHost ah;
     lock (autoHosts)
     {
         ah = new AutoHost(MetaCache, config, GetFreeHostingPort(), spawnData);
         var otherClone = autoHosts.Where(x => x.config.Login == config.Login).Max(x => (int?)x.CloneNumber);
         if (otherClone.HasValue) ah.CloneNumber = otherClone.Value + 1;
         
         autoHosts.Add(ah);
     }
     return ah;
 }