Ejemplo n.º 1
0
 /// <summary>
 /// Adds a ZclCommandListener to receive commands
 ///
 /// <param name="listener">the ZclCommandListener to add</param>
 /// </summary>
 public void AddCommandListener(IZclCommandListener listener)
 {
     // Don't add more than once.
     if (_commandListeners.Contains(listener))
     {
         return;
     }
     _commandListeners.Add(listener);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Remove a ZclCommandListener from the cluster.
 ///
 /// <param name="listener">callback listener implementing ZclCommandListener to remove</param>
 /// </summary>
 public void RemoveCommandListener(IZclCommandListener listener)
 {
     _commandListeners.Remove(listener);
 }