Exemplo n.º 1
0
        public static object Route(string endpointName, NetCoreEventArgs e)
        {
            try
            {
                var endpoint = getEndpoint(endpointName);
                if (endpoint == null)
                {
                    var defaultEndpoint = getEndpoint("DEFAULT");
                    if (defaultEndpoint != null)
                    {
                        e.message.Type = endpointName + "|" + e.message.Type;
                        return(defaultEndpoint.OnMessageReceived(null, e));
                    }
                }
                return(endpoint.OnMessageReceived(null, e));
            }
            catch (Exception ex)
            {
                if (CloudDebug.ShowErrorDialog(ex) == DialogResult.Abort)
                {
                    throw new RTCV.NetCore.AbortEverythingException();
                }

                return(null);
            }
        }
Exemplo n.º 2
0
        public static object Route(string endpointName, NetCoreEventArgs e)
        {
            try
            {
                var endpoint = getEndpoint(endpointName);
                if (endpoint == null)
                {
                    var defaultEndpoint = getEndpoint("DEFAULT");
                    if (defaultEndpoint != null)
                    {
                        e.message.Type = endpointName + "|" + e.message.Type;
                        return(defaultEndpoint.OnMessageReceived(null, e));
                    }
                }
                return(endpoint.OnMessageReceived(null, e));
            }
            catch (Exception ex)
            {
                string additionalInfo = "Error trapped from LocalRouter\n\n";

                var ex2 = new CustomException(ex.Message, additionalInfo + ex.StackTrace);

                if (CloudDebug.ShowErrorDialog(ex2) == DialogResult.Abort)
                {
                    throw new RTCV.NetCore.AbortEverythingException();
                }

                return(null);
            }
        }
Exemplo n.º 3
0
        public static void ForceCloudDebug()
        {
            //SECRET CRASH DONT TELL ANYONE
            //Trigger: Hold Manual Blast for 7 seconds
            //Purpose: Testing debug window
            var ex = new CustomException("SECRET CRASH DONT TELL ANYONE",
                                         "───────▄▀▀▀▀▀▀▀▀▀▀▄▄" + Environment.NewLine + "────▄▀▀─────────────▀▄" + Environment.NewLine + "──▄▀──────────────────▀▄" + Environment.NewLine +
                                         "──█─────────────────────▀▄" + Environment.NewLine + "─▐▌────────▄▄▄▄▄▄▄───────▐▌" + Environment.NewLine + "─█───────────▄▄▄▄──▀▀▀▀▀──█" + Environment.NewLine +
                                         "▐▌───────▀▀▀▀─────▀▀▀▀▀───▐▌" + Environment.NewLine + "█─────────▄▄▀▀▀▀▀────▀▀▀▀▄─█" + Environment.NewLine + "█────────────────▀───▐─────▐▌" +
                                         Environment.NewLine + "▐▌─────────▐▀▀██▄──────▄▄▄─▐▌" + Environment.NewLine + "─█───────────▀▀▀──────▀▀██──█" + Environment.NewLine + "─▐▌────▄─────────────▌──────█" + Environment.NewLine + "──▐▌──▐──────────────▀▄─────█" +
                                         Environment.NewLine + "───█───▌────────▐▀────▄▀───▐▌" + Environment.NewLine + "───▐▌──▀▄────────▀─▀─▀▀───▄▀" + Environment.NewLine + "───▐▌──▐▀▄────────────────█" + Environment.NewLine + "───▐▌───▌─▀▄────▀▀▀▀▀▀───█" + Environment.NewLine +
                                         "───█───▀────▀▄──────────▄▀" + Environment.NewLine + "──▐▌──────────▀▄──────▄▀" + Environment.NewLine +
                                         "─▄▀───▄▀────────▀▀▀▀█▀" + Environment.NewLine + "▀───▄▀──────────▀───▀▀▀▀▄▄▄▄▄"
                                         );

            Form error  = new RTCV.NetCore.CloudDebug(ex, true);
            var  result = error.ShowDialog();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Global exceptions in User Interfarce antipicated error
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        internal static void ApplicationThreadException(object sender, ThreadExceptionEventArgs e)
        {
            Exception ex     = e.Exception;
            Form      error  = new RTCV.NetCore.CloudDebug(ex);
            var       result = error.ShowDialog();

            Form loaderObject = (sender as Form);

            if (result == DialogResult.Abort)
            {
                if (loaderObject != null)
                {
                    RTCV.NetCore.SyncObjectSingleton.SyncObjectExecute(loaderObject, (o, ea) =>
                    {
                        loaderObject.Close();
                    });
                }
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Global exceptions in Non User Interfarce(other thread) antipicated error
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 internal static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     Exception ex     = (Exception)e.ExceptionObject;
     Form      error  = new RTCV.NetCore.CloudDebug(ex);
     var       result = error.ShowDialog();
 }
Exemplo n.º 6
0
 private void btnGetDebugEmu_Click(object sender, EventArgs e)
 {
     richTextBox2.Text = CloudDebug.getEmuInfo();
 }
Exemplo n.º 7
0
 private void btnGetDebugRTC_Click(object sender, EventArgs e)
 {
     tbRTC.Text = CloudDebug.getRTCInfo();
 }