Exemple #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtAddress.Text))
            {
                return;
            }

            BenchRunnerOptions option = CreateOptions();
            var          runner       = new BenchRunner(txtApacheBenchFileName.Text);
            WorkerParams p            = new WorkerParams(runner, option);

            _singleTestWorker.RunWorkerAsync(p);
        }
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtAddress.Text))
                return;

            BenchRunnerOptions option = CreateOptions();
            var runner = new BenchRunner(txtApacheBenchFileName.Text);
            WorkerParams p = new WorkerParams(runner, option);
            _singleTestWorker.RunWorkerAsync(p);
        }
Exemple #3
0
        private void SingleTestWorkerDoWork(object sender, DoWorkEventArgs e)
        {
            WorkerParams workerParams = (WorkerParams)e.Argument;

            e.Result = workerParams.Runner.Run(workerParams.Options);
        }