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); } }
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); } }
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(); }
/// <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(); }); } } }
/// <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(); }
private void btnGetDebugEmu_Click(object sender, EventArgs e) { richTextBox2.Text = CloudDebug.getEmuInfo(); }
private void btnGetDebugRTC_Click(object sender, EventArgs e) { tbRTC.Text = CloudDebug.getRTCInfo(); }