System.Net.ConnectionPoolManager.GetConnectionPool C# (CSharp) Method

GetConnectionPool() static private method

static private GetConnectionPool ( ServicePoint servicePoint, string groupName, CreateConnectionDelegate createConnectionCallback ) : ConnectionPool
servicePoint ServicePoint
groupName string
createConnectionCallback CreateConnectionDelegate
return ConnectionPool
        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;
            }
        }