private void OnItemDiscarded(T discardedItem, T value)
 {
     if (ItemDiscarded != null)
     {
         var args = new ItemDiscarded_EventArgs <T>(discardedItem, value);
         ItemDiscarded(this, args);
     }
 }
Exemple #2
0
 private static void Buffer_ItemDiscarded(object sender, ItemDiscarded_EventArgs <double> eventArgs)
 {
     Utilities.NewSectionHeading("BUFFER FULL - AN ITEM WAS DISCARDED", 2);
     Console.WriteLine($"SENDER: \t {sender} \nEVENTARGS: \t Discarding Item: {eventArgs.ItemDiscarded} \t Adding Item: {eventArgs.NewItemAdded}");
 }