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;
}
}