Esempio n. 1
0
 public bool TryDequeue(EvaluationType type, out EvaluationNotification evaluationNotification)
 {
     evaluationNotification = _pendingNotifications.FirstOrDefault(p => p.Type == type);
     _pendingNotifications.Remove(evaluationNotification);
     return(evaluationNotification != null);
 }
Esempio n. 2
0
 public bool TryDequeue(out EvaluationNotification evaluationNotification)
 {
     evaluationNotification = _pendingNotifications.FirstOrDefault();
     _pendingNotifications.Remove(evaluationNotification);
     return(evaluationNotification != null);
 }