Beispiel #1
0
        private static void PlaceOrder(ITradingEngine engine, ConcurrentQueue <Order> orders)
        {
            Order order;

            while (orders.TryDequeue(out order))
            {
                Console.WriteLine("Place: " + order);
                engine.Place(order);
            }
        }