NotifyExceptionListeners() 보호된 메소드

protected NotifyExceptionListeners ( LdapMessage sourceMessage, LdapException ldapException ) : void
sourceMessage Novell.Directory.Ldap.LdapMessage
ldapException Novell.Directory.Ldap.LdapException
리턴 void
예제 #1
0
            } // end of Constructor

            protected void Run()
            {
                while (isrunning)
                {
                    LdapMessage response = null;
                    try
                    {
                        while (isrunning
                               && !searchqueue.isResponseReceived(messageid))
                        {
                            Thread.Sleep(sleep_time);
                        }

                        if (isrunning)
                        {
                            response = searchqueue.getResponse(messageid);
                        }

                        if (response != null)
                        {
                            processmessage(response);
                        }
                    }
                    catch (LdapException e)
                    {
                        m_objLdapEventSource.NotifyExceptionListeners(response, e);
                    }
                }
            } // end of method run
예제 #2
0
            } // end of Constructor

            protected void Run()
            {
                while (isrunning)
                {
                    LdapMessage response = null;
                    try
                    {
                        while ((isrunning) &&
                               (!searchqueue.isResponseReceived(messageid)))
                        {
                            try
                            {
                                Thread.Sleep(sleep_time);
                            }
                            catch (ThreadInterruptedException e)
                            {
                                LogManager.GetLogger(typeof(EventsGenerator)).
                                DebugFormat("EventsGenerator::Run Got ThreadInterruptedException e = {0}", e);
                            }
                        }

                        if (isrunning)
                        {
                            response = searchqueue.getResponse(messageid);
                        }

                        if (response != null)
                        {
                            processmessage(response);
                        }
                    }
                    catch (LdapException e)
                    {
                        m_objLdapEventSource.NotifyExceptionListeners(response, e);
                    }
                }
            } // end of method run