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

GetPool() public static method

public static GetPool ( IPEndPoint endPoint ) : ConnectionPool
endPoint System.Net.IPEndPoint
return ConnectionPool
        public static ConnectionPool GetPool(IPEndPoint endPoint) {
            lock(_pools) {
                ConnectionPool pool;
                var key = string.Format("{0}:{1}", endPoint.Address, endPoint.Port);
                if(!_pools.TryGetValue(key, out pool)) {
                    pool = new ConnectionPool(endPoint);
                    _pools[key] = pool;
                }
                return pool;
            }
        }

Same methods

ConnectionPool::GetPool ( string host, int port ) : ConnectionPool