Exemple #1
0
 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();
     });
 }
Exemple #2
0
 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();
         });
 }
Exemple #3
0
        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();
        }
Exemple #4
0
        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();
        }