Ejemplo n.º 1
0
        protected void StartEventPolling(LdapMessageQueue queue, LdapConnection conn, int msgid)
        {
            // validate the argument values
            if ((queue == null) || (conn == null))
            {
                throw new ArgumentException("No parameter can be Null.");
            }

            if (null == m_objEventsGenerator)
            {
                m_objEventsGenerator           = new EventsGenerator(this, queue, conn, msgid);
                m_objEventsGenerator.SleepTime = sleep_interval;

                m_objEventsGenerator.StartEventPolling();
            }
        } // end of method StartEventPolling
    protected void StartEventPolling(
				 LdapMessageQueue queue,
				 LdapConnection conn,
				 int msgid)
    {
      // validate the argument values
      if ( (queue == null)
	   || (conn == null))
      {
	throw new ArgumentException("No parameter can be Null.");
      }

      if (null == m_objEventsGenerator)
      {
	m_objEventsGenerator =  new EventsGenerator(this, queue, conn, msgid);
	m_objEventsGenerator.SleepTime = sleep_interval;

	m_objEventsGenerator.StartEventPolling();
      }
    } // end of method StartEventPolling