System.Net.ConnectionPool.ConnectionPool C# (CSharp) Method

ConnectionPool() private method

Constructor - binds pool with a servicePoint and sets up a cleanup Timer to nuke Idle Connections

private ConnectionPool ( ServicePoint servicePoint, int maxPoolSize, int minPoolSize, int idleTimeout, CreateConnectionDelegate createConnectionCallback ) : System
servicePoint ServicePoint
maxPoolSize int
minPoolSize int
idleTimeout int
createConnectionCallback CreateConnectionDelegate
return System
        internal ConnectionPool(ServicePoint servicePoint, int maxPoolSize, int minPoolSize, int idleTimeout, CreateConnectionDelegate createConnectionCallback) : base() {
            m_State                = State.Initializing;

            m_CreateConnectionCallback = createConnectionCallback;
            m_MaxPoolSize = maxPoolSize;
            m_MinPoolSize = minPoolSize;
            m_ServicePoint = servicePoint;

            Initialize();

            if (idleTimeout > 0) {
                m_CleanupQueue = TimerThread.GetOrCreateQueue(idleTimeout / 2);
                m_CleanupQueue.CreateTimer(s_CleanupCallback, this);
            }
        }