示例#1
0
 private LoadTestRunner(Options options, LoadTestOptions verbOptions, Func <IPEndPoint, FastServer> serverFactory, Func <IPEndPoint, FastClient> clientFactory)
     : base(options)
 {
     this.serverFactory = serverFactory;
     this.clientFactory = clientFactory;
     this.verbOptions   = verbOptions;
 }
示例#2
0
 public static void Run(Options options, LoadTestOptions verbOptions, Func <IPEndPoint, FastServer> serverFactory, Func <IPEndPoint, FastClient> clientFactory)
 {
     using (var runner = new LoadTestRunner(options, verbOptions, serverFactory, clientFactory))
     {
         if (verbOptions.ExternalProxy)
         {
             runner.RunExternal();
         }
         else
         {
             runner.Run();
         }
     }
 }