MindTouch.Clacks.Client.Net.ConnectionPool.GetPool C# (CSharp) Method

GetPool() public static method

public static GetPool ( string host, int port ) : ConnectionPool
host string
port int
return ConnectionPool
        public static ConnectionPool GetPool(string host, int port) {
            lock(_pools) {
                ConnectionPool pool;
                var key = string.Format("{0}:{1}", host, port);
                if(!_pools.TryGetValue(key, out pool)) {
                    pool = new ConnectionPool(host, port);
                    _pools[key] = pool;
                }
                return pool;
            }
        }

Same methods

ConnectionPool::GetPool ( IPEndPoint endPoint ) : ConnectionPool