public void executeSubmit( ) { wsrest objwsrest; objwsrest = new wsrest(); objwsrest.context.SetSubmitInitialConfig(context); objwsrest.initialize(); ThreadPool.QueueUserWorkItem(new WaitCallback(executePrivateCatch), objwsrest); }
public void execute( ) { try { wsrest worker = new wsrest(context); worker.IsMain = RunAsMain; worker.execute( ); worker.cleanup( ); } catch (Exception e) { WebException(e); } finally { Cleanup(); } }