Esempio n. 1
0
 public static int Main(string[] args)
 {
     Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
     if (Environment.UserInteractive)
     {
         return(IPBanServiceRunner.RunConsole(args));
     }
     else
     {
         return(IPBanServiceRunner.RunService(args));
     }
 }
Esempio n. 2
0
 public static int Main(string[] args)
 {
     Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
     runner = new IPBanServiceRunner();
     if (args.Length != 0 && args[0] == "debug")
     {
         return(runner.RunConsole(args));
     }
     else
     {
         return(runner.RunService(args));
     }
 }