Bebbs.Harmonize.Service.Program.Main C# (CSharp) Метод

Main() статический приватный Метод

The main entry point for the application.
static private Main ( Array args ) : void
args Array
Результат void
        static void Main(string[] args)
        {
            Options options = new Options();

            CommandLine.Parser.Default.ParseArguments(args, options);

            if (options.Console)
            {
                Controller controller = new Controller();
                controller.Start(options);

                Console.WriteLine("Hit enter to exit...");
                Console.ReadLine();
            }
            else
            {
                ServiceBase[] ServicesToRun = new ServiceBase[] { new Host() };
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
Program