Ejemplo n.º 1
0
 public void DestroyListeners()
 {
     try
     {
         foreach (object i in initializedListeners)
         {
             IDestructible destructible = i as IDestructible;
             if (destructible != null)
             {
                 destructible.Cleanup();
             }
         }
     }
     catch (Exception e)
     {
         throw new HibernateException("could not destruct listeners", e);
     }
 }