示例#1
0
 static void ExecuteFistImplementation()
 {
     FeedSimulation.DataFeed dataFeed = new FeedSimulation.DataFeed();
     dataFeed.Subscribe(new Strategy("Strategy1"));
     dataFeed.Subscribe(new Strategy("Strategy2"));
     dataFeed.Start();
     Console.WriteLine("End");
     Console.ReadKey();
     dataFeed.Stop();
 }
 public FeedGenerator(DataFeed feed)
 {
     Feed = feed;
 }