Beispiel #1
0
        static void Main(string[] args)
        {
            for (int i = 0; i < args.Length; i++)
            {
                Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);

                string param = args[i];

                if (param.ToLower() == "resetseq")
                {
                    _resetSequenceNumber = true;
                }
            }
            _resetSequenceNumber = true;

            //Console.Title = "Fix Orders Service (Fix Client)";
            SystemLogger.Initialize();
            SystemConfigurations.Initialize();
            NotificationSender.Initialize();

            Program prog = new Program();

            if (Environment.UserInteractive)
            {
                prog.OnStart(args);
                while (true)
                {
                    Console.ReadKey();
                }
            }
            else
            {
                ServiceBase.Run(prog);
            }
        }