Observable not reacting to blocking collection changed on different thread
问题 I have the following code: class Program { static void Main(string[] args) { var watcher = new SNotifier(DumpToConsole); watcher.StartQueue(); Console.ReadLine(); } private static void DumpToConsole(IList<Timestamped<int>> currentCol) { Console.WriteLine("buffer time elapsed, current collection contents is: {0} items.", currentCol.Count); Console.WriteLine("holder has: {0}", currentCol.Count); } } the SNotifier: public class SNotifier { private BlockingCollection<int> _holderQueue; private