示例#1
0
        public void executeSubmit( )
        {
            wsrest objwsrest;

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