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