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; }
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(); } } }