DisableKeepAliveOnConnections() private method

private DisableKeepAliveOnConnections ( ) : void
return void
 internal bool ReleaseConnectionGroup(string connName)
 {
     lock (this)
     {
         ConnectionGroup group = this.FindConnectionGroup(connName, true);
         if (group == null)
         {
             return(false);
         }
         group.DisableKeepAliveOnConnections();
         this.m_ConnectionGroupList.Remove(connName);
     }
     return(true);
 }
Ejemplo n.º 2
0
        /// <devdoc>
        ///    <para>
        ///       Sets connections in this group to not be KeepAlive.
        ///       This is called to force cleanup of the ConnectionGroup by the
        ///       NTLM and Negotiate authentication modules.
        ///    </para>
        /// </devdoc>
        internal void ReleaseConnectionGroup(string connName)
        {
            //
            // look up the ConnectionGroup based on the name
            //
            ConnectionGroup connectionGroup = FindConnectionGroup(connName);

            //
            // force all connections on the ConnectionGroup to not be KeepAlive
            //
            connectionGroup.DisableKeepAliveOnConnections();
            //
            // remove ConnectionGroup from our Hashtable
            //
            lock (this) {
                m_ConnectionGroupList.Remove(connName);
            }
        }