public static int Main(string[] args) { Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); if (Environment.UserInteractive) { return(IPBanServiceRunner.RunConsole(args)); } else { return(IPBanServiceRunner.RunService(args)); } }
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)); } }