Exemple #1
0
        public static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure();

            if (args.Length < 1)
            {
                Console.Out.WriteLine("Arguments are: <numberOfEvents>");
                Environment.Exit(-1);
            }

            int events;

            try {
                events = Int32.Parse(args[0]);
            } catch (NullReferenceException) {
                Console.Out.WriteLine("Invalid numberOfEvents:" + args[0]);
                Environment.Exit(-2);
                return;
            }

            // Prime a few assemblies into memory
            StockTick  tempA = new StockTick(null, 0.0);
            PriceLimit tempB = new PriceLimit(null, null, 0.0);

            // Run the sample
            AutoIdSimMain autoIdSimMain = new AutoIdSimMain(events, "AutoIDSim");

            autoIdSimMain.Run();
        }
Exemple #2
0
        public void testRun()
        {
            AutoIdSimMain main = new AutoIdSimMain(10, "AutoIdSample");

            main.Run();
        }