Exemplo n.º 1
0
        void call_OnWebException(object sender, drexProcess.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
        {
            Invoke((MethodInvoker)(() => {
                uc_log1.LogErrorMessage(e.Message);
            }));

            SetReady("request end");
        }
Exemplo n.º 2
0
        public void asyncCall_OnRerieveException(object sender, drexProcess.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
        {
            utils.Logger.Instance.Log.Info("Start " + e.Name);

            exceptionOccurred = true;

            if (OnException != null)
            {
                OnException(sender, e);
            }
        }
Exemplo n.º 3
0
        void asyncCall_OnRerieveWebException(object sender, drexProcess.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
        {
            utils.Logger.Instance.Log.Info("Start " + e.Name);

            _addedWsdls.Remove(e.Name);

            Invoke((MethodInvoker)(() => {
                uc_log1.LogErrorMessage("error adding wsdl - " + e.Message + " - " + e.Name);
                uc_log1.LogInfoMessage("finish adding wsdl - " + e.Name);
            }));
        }
Exemplo n.º 4
0
        public void asyncCall_OnRerieveExceptionStartup(object sender, drexProcess.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
        {
            exceptionOccurred = true;

            //if a wsdl being loaded from the startup file results in an exception the program closes. This means that we will not be able to start the program to remove the faulty wsdl.
            //as a workaround set the starup wsdls file to disabled and save.
            try {
                State.Instance.ConfigStartupWsdls.Enabled = false;
                State.Instance.Save();
            }
            catch (Exception) {
            }

            if (OnException != null)
            {
                OnException(sender, e);
            }
        }
Exemplo n.º 5
0
 static void mainForm_OnException(object sender, process.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
 {
     HandleException(e.Ex);
 }
Exemplo n.º 6
0
 static void mainForm_OnException(object sender, drexProcess.WebSvcAsync.EventParams.ExceptionAsyncArgs e)
 {
     System.Console.WriteLine(e.Ex.ToString());
 }