static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e) { Console.WriteLine("Buffer full. Discarding {0} New item is {1}", e.ItemDiscarded, e.NewItem ); }
private void OneItemDiscarded(T discard, T value) { if (ItemDiscarded != null) { var args = new ItemDiscardedEventArgs <T>(discard, value); ItemDiscarded(this, args); } }
private void OnItemDisgarded(T value, T discard) { if (ItemDisgarded != null) //this determins of anyone has suscribed to this event { var args = new ItemDiscardedEventArgs <T>(discard, value); ItemDisgarded(this, args); } }
private static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e) { Console.WriteLine("Buffer full. Discarding: {0}. New item: {1}.", e.ItemDiscarded, e.NewItem); }
private static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e) { Console.WriteLine($"Discarding {e.ItemDiscarded} and new item is {e.ItemAdded}."); }
private static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e) { Console.WriteLine($"New item {e.NewItem} added and Buffer is full! So the oldest item {e.ItemDiscarded} is discarded"); }
private static void ItemDiscarded(object sender, ItemDiscardedEventArgs <double> e) { Console.WriteLine($"Buffer Full. Discarding {e.ItemDiscarded}. New Item is {e.NewItem}"); }