private void OnItemDiscarded(T discard, T value)
 {
     if (ItemDiscarded != null)
     {
         var args = new ItemDiscardedEventArgs <T>(discard, value);
         ItemDiscarded(this, args);
     }
 }
Exemple #2
0
 private static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e)
 {
     Console.WriteLine($"Buffer full. Discarding {e.ItemDiscarded} New item is {e.NewItem}");
 }