예제 #1
0
 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);
 }
예제 #2
0
        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);
        }