Novell.Directory.Ldap.LdapConnection.AddUnsolicitedNotificationListener C# (CSharp) Method

AddUnsolicitedNotificationListener() public method

Registers an object to be notified on arrival of an unsolicited message from a server. An unsolicited message has the ID 0. A new thread is created and the method "messageReceived" in each registered object is called in turn.
public AddUnsolicitedNotificationListener ( LdapUnsolicitedNotificationListener listener ) : void
listener LdapUnsolicitedNotificationListener An object to be notified on arrival of an /// unsolicited message from a server. This object must /// implement the LdapUnsolicitedNotificationListener interface. /// ///
return void
        public virtual void AddUnsolicitedNotificationListener(LdapUnsolicitedNotificationListener listener)
        {
            if (listener != null)
                conn.AddUnsolicitedNotificationListener(listener);
        }