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