예제 #1
0
        public static Server ChooseServer(BeatmapsetPackage p)
        {
            Server[] order  = new Server[] { Server.Blooadcat, Server.Inso, Server.Orgin };
            Server   server = new Server();

            for (int i = 0; i < 3; i++)
            {
                Server s = order[i];
                if (!p.FailedServerList.Exists(x => x == s))
                {
                    server = s;
                    break;
                }
                else if (i == 2)
                {
                    throw new Exception();
                }
            }
            return(server);
        }
예제 #2
0
 public void Add(BeatmapsetPackage beatmapsetPackage)
 {
     PendingQueue.Enqueue(beatmapsetPackage);
     CheckDownloadersState();
 }