Candor.Tasks.MultiWorkerService.Program.Main C# (CSharp) Méthode

Main() static private méthode

The main entry point for the application.
static private Main ( ) : void
Résultat void
        static void Main()
        {
            #if DEBUG
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ServiceTestForm(new CandorWorkerRoleService()));
            #else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new CandorWorkerRoleService() };
            ServiceBase.Run(ServicesToRun);
            #endif
        }
Program