Esempio n. 1
0
 protected virtual bool HasNotificationChanged(NotificationRequest request, AlertHistory alertHistory)
 {
     return(!alertHistory.ResultCount.GetValueOrDefault(0).Equals(request.Notification.ResultCount.GetValueOrDefault(0)));
 }
Esempio n. 2
0
 protected virtual void HandleStateChange(NotificationRequest request, AlertHistory alertHistory)
 {
     alertHistory.InjectFrom <LoopValueInjection>(request.Notification);
     alertHistory.Received = DateTime.UtcNow;
 }
Esempio n. 3
0
 protected virtual void HandleFirstAlert(NotificationRequest request, AlertHistory alertHistory)
 {
     alertHistory.InjectFrom <LoopValueInjection>(request.Notification);
     History.Add(GetKey(request), alertHistory);
 }