Example #1
0
 /// <summary>
 /// Disconnects the connection to the server.
 /// </summary>
 public void Disconnect()
 {
     if (dmoServer != null)
     {
         // Physically disconnect from server
         dmoServer.DisConnect();
     }
     if (this.IntegratedSecurity)
     {
         security.EndImpersonate();
     }
 }
Example #2
0
        /// <summary>
        /// Disconnects the connection to the server.
        /// </summary>
        public void Disconnect()
        {
            // Physically disconnect from server
            if (dmoServer != null)
            {
                dmoServer.DisConnect();
            }

            // if using impersonated NT login, end impersonation
            if (this.impersonateNtLogin)
            {
                security.EndImpersonate();
            }
        }