static MonitorEventRequest()
        {
            /*
             * Register the extendedresponse class which is returned by the
             * server in response to a MonitorEventRequest
             */
            try
            {
                LdapExtendedResponse.register(EventOids.NLDAP_MONITOR_EVENTS_RESPONSE,
                                              Type.GetType("Novell.Directory.Ldap.Events.Edir.MonitorEventResponse", true));
            }
            catch (TypeLoadException e)
            {
                // TODO: put something in the Debug...
            }
            catch (Exception e)
            {
                // TODO: put something in the Debug...
            }

            //Also try to register EdirEventIntermediateResponse
            try
            {
                LdapIntermediateResponse.register(EventOids.NLDAP_EVENT_NOTIFICATION,
                                                  Type.GetType("Novell.Directory.Ldap.Events.Edir.EdirEventIntermediateResponse", true));
            }
            catch (TypeLoadException e)
            {
                // TODO: put something in the Debug...
            }
            catch (Exception e)
            {
                // TODO: put something in the Debug...
            }
        } // end of static constructor
Ejemplo n.º 2
0
 static MonitorEventRequest()
 {
     /*
      * Register the extendedresponse class which is returned by the
      * server in response to a MonitorEventRequest
      */
     LdapExtendedResponse.register(EventOids.NLDAP_MONITOR_EVENTS_RESPONSE, typeof(MonitorEventResponse));
     //Also try to register EdirEventIntermediateResponse
     LdapIntermediateResponse.register(EventOids.NLDAP_EVENT_NOTIFICATION, typeof(EdirEventIntermediateResponse));
 } // end of static constructor