public static void Run(string[] args) { var parserResult = Parser.Default.ParseArguments <ServerOptions>(args) .WithNotParsed((x) => Environment.Exit(1)) .WithParsed(options => { var workerServer = new QpsWorker(options); workerServer.RunAsync().Wait(); }); }
public static void Run(string[] args) { var parserResult = Parser.Default.ParseArguments<ServerOptions>(args) .WithNotParsed((x) => Environment.Exit(1)) .WithParsed(options => { var workerServer = new QpsWorker(options); workerServer.RunAsync().Wait(); }); }
public static void Run(string[] args) { var options = new ServerOptions(); if (!Parser.Default.ParseArguments(args, options)) { Environment.Exit(1); } var workerServer = new QpsWorker(options); workerServer.RunAsync().Wait(); }
public static void Run(string[] args) { var options = new ServerOptions(); if (!Parser.Default.ParseArguments(args, options)) { Environment.Exit(1); } var workerServer = new QpsWorker(options); workerServer.RunAsync().Wait(); }