static void Main(string[] args) { if (args.Length != 1) { System.Environment.Exit(2); } string file = args[0]; IApplication application = new QuickFixService(file, QuickFixService.QuickFixType.Acceptor); }
static void Main(string[] args) { if (args.Length != 1) { System.Environment.Exit(2); } string file = args[0]; try { QuickFixService application = new QuickFixService(file, QuickFixService.QuickFixType.Initiator); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.WriteLine(ex.StackTrace); } Environment.Exit(1); }