public void Persistir() { try { this.timer.Stop(); if (SqlServerHelper.CheckConnection()) { sessionPersistenceManager.Persistir(); } } finally { this.timer.Start(); } }
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(); } }