Ejemplo n.º 1
0
        internal static Connection GetTrackerConnection()
        {
            int  num  = new Random().Next(TrackerPools.Count);
            Pool pool = TrackerPools[_listTrackers[num]];

            return(pool.GetConnection());
        }
Ejemplo n.º 2
0
        public static Connection GetTrackerConnection()
        {
            Random random = new Random();
            int    index  = random.Next(trackerPools.Count);
            Pool   pool   = trackerPools[listTrackers[index]];

            return(pool.GetConnection());
        }