Пример #1
0
 public void Persistir()
 {
     try
     {
         this.timer.Stop();
         if (SqlServerHelper.CheckConnection())
         {
             sessionPersistenceManager.Persistir();
         }
     }
     finally
     {
         this.timer.Start();
     }
 }
Пример #2
0
 public void Persistir()
 {
     try
     {
         this.timer.Stop();
         if (this.loggers != null && this.loggers.Count > 0)
         {
             if (SqlServerHelper.CheckConnection())
             {
                 foreach (var item in this.loggers.Values)
                 {
                     item.Persistir();
                 }
             }
         }
     }
     finally
     {
         this.timer.Start();
     }
 }