Novell.Directory.Ldap.Message.Timeout.Run C# (CSharp) Method

Run() public method

The timeout thread. If it wakes from the sleep, future input is stopped and the request is timed out.
public Run ( ) : void
return void
            public override void Run()
            {
                try
                {
                    System.Threading.Thread.Sleep(new System.TimeSpan(10000 * timeToWait));
                    message.acceptReplies = false;
                    // Note: Abandon clears the bind semaphore after failed bind.
                    message.Abandon(null, new InterThreadException("Client request timed out", null, LdapException.Ldap_TIMEOUT, null, message));
                }
                catch (System.Threading.ThreadInterruptedException ie)
                {
                    // the timer was stopped, do nothing
                }
                return ;
            }