public void OnAlert(ImageServer.Common.Alert alert) { AlertFilter filter = new AlertFilter(AlertCache.Instance); if (!filter.Filter(alert)) { AlertCache.Instance.Add(alert); if (DatabaseEnabled) WriteToDatabase(alert); else WriteToLog(alert); } }
public void OnAlert(ImageServer.Common.Alert alert) { AlertFilter filter = new AlertFilter(AlertCache.Instance); if (!filter.Filter(alert)) { AlertCache.Instance.Add(alert); if (DatabaseEnabled) { WriteToDatabase(alert); } else { WriteToLog(alert); } } }