Пример #1
0
 public void GenerateFeed()
 {
     while (true)
     {
         var randomNumber = 1000;// Randomizer.GetRandomNumber();
         Console.WriteLine("Thread {0} : Generator sleeping for {1} Tick id {2}", Thread.CurrentThread.ManagedThreadId, randomNumber, TickId);
         Thread.Sleep(randomNumber);
         Feed.AddFeed(new Tick(TickId, randomNumber, DateTime.Now));
         TickId++;
     }
 }