using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Kneesocks; using System.Net.Sockets; namespace CircleScape { static class PoolManager { private static Pool PendingConnectionsPool; private static Pool ActiveConnectionsPool; public static Pool Pending { get { return PendingConnectionsPool; } } public static Pool Active { get { return ActiveConnectionsPool; } } static PoolManager() { PendingConnectionsPool = new Pool { InitialCount = 1, InitialSize = 10, SizeGrowth = 10, MaxSize = 50, MaxCount = 5 }; ActiveConnectionsPool = new Pool(); } public static void Dispose() { PendingConnectionsPool.Dispose(); ActiveConnectionsPool.Dispose(); } } }