Exemplo n.º 1
0
        // This event handler is where the time-consuming work is done.
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            BackgroundWorker worker = sender as BackgroundWorker;

            //responseTextBox.Text = "1";// String.Empty;
            soapTesterStatus.Text = "Executing...";

            e.Result = SoapTesterService.Execute(e.Argument as SoapRequest);

            //TODO support cancel/stop request.
            //    if (worker.CancellationPending == true)
            //    {
            //        e.Cancel = true;
            //        break;
            //    }
        }
Exemplo n.º 2
0
        public static SoapResponse Execute(SoapRequest request)
        {
            SoapTesterService soapService = new SoapTesterService(request);

            return(soapService.Execute());
        }