internal static ConnectionPool GetConnectionPool(ServicePoint servicePoint, string groupName, CreateConnectionDelegate createConnectionCallback) {
string key = GenerateKey(servicePoint.Host, servicePoint.Port, groupName);
lock(InternalSyncObject) {
ConnectionPool connectionPool = (ConnectionPool) m_ConnectionPools[key];
if (connectionPool == null) {
connectionPool = new ConnectionPool(servicePoint, servicePoint.ConnectionLimit, 0, servicePoint.MaxIdleTime, createConnectionCallback);
m_ConnectionPools[key] = connectionPool;
}
return connectionPool;
}
}