public static void Main(string[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); 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 var tempA = new StockTick(null, 0.0); var tempB = new PriceLimit(null, null, 0.0); // Run the sample var autoIdSimMain = new AutoIdSimMain(events, "AutoIDSim"); autoIdSimMain.Run(); }
public void TestRun() { var main = new AutoIdSimMain(10, "AutoIdSample"); main.Run(); }