Guest User

Untitled

a guest
Jun 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. internal static class Program
  2. {
  3. /// <summary>
  4. /// The main entry point for the application.
  5. /// </summary>
  6. static void Main(string[] args)
  7. {
  8. if((args.Length > 0) && (Array.IndexOf(args, "/console") != -1))
  9. {
  10. BombaliService service = new BombaliService();
  11. service.RunConsole(args);
  12. }
  13. else
  14. {
  15. ServiceBase[] ServicesToRun;
  16. ServicesToRun = new ServiceBase[]
  17. {
  18. new BombaliService()
  19. };
  20. ServiceBase.Run(ServicesToRun);
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment