Beispiel #1
0
        /// <summary>
        /// Console entrypoint
        /// </summary>
        /// <param name="args">Command line arguments. you can override the default config file by supplying "--config=/path/to/configfile.conf"</param>
        public static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += HandleAppDomainCurrentDomainUnhandledException;

            CommandLineHandler commandLineHandler = new CommandLineHandler();
            commandLineHandler.RegisterCallback("help", OutputHelp);
            commandLineHandler.RegisterCallback("h", OutputHelp);
            commandLineHandler.Parse(args);

            TPMServerContext ctx = new TPMServerContext();
            ctx.Start();

            Thread.Sleep(Timeout.Infinite);
        }
Beispiel #2
0
        /// <summary>
        /// Console entrypoint
        /// </summary>
        /// <param name="args">Command line arguments. you can override the default config file by supplying "--config=/path/to/configfile.conf"</param>
        public static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += HandleAppDomainCurrentDomainUnhandledException;

            CommandLineHandler commandLineHandler = new CommandLineHandler();

            commandLineHandler.RegisterCallback("help", OutputHelp);
            commandLineHandler.RegisterCallback("h", OutputHelp);
            commandLineHandler.Parse(args);


            TPMServerContext ctx = new TPMServerContext();

            ctx.Start();

            Thread.Sleep(Timeout.Infinite);
        }