static private void OnShutdown() { try { AppDomain.CurrentDomain.ProcessExit -= OnShutdown; RIEventManager.OnConfigChange -= OnConfigFileChange; RIEventManager.DoOnShutdown(); ReflectInsight.OnShutdown(); DebugManager.OnShutdown(); RIMessageColors.OnShutdown(); RILogManager.OnShutdown(); RIListenerGroupManager.OnShutdown(); ReflectInsightConfig.OnShutdown(); TraceMethod.OnShutdown(); RITraceListener.OnShutdown(); } catch (Exception ex) { RIExceptionManager.Publish(ex, "Failed during: static ReflectInsightService.OnShutdown()"); } finally { RIExceptionManager.OnShutdown(); DebugTextLoggerManager.OnShutdown(); } }
static RITraceListener() { ReferenceCount = 0; LockObject = new Object(); FRequestObjectManager = new RequestObjectManager <RITraceListenerRequest>(() => new RITraceListenerRequest()); FSendInternalErrorMethodInfo = typeof(ReflectInsight).GetMethod("SendInternalError", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod); FListener = null; FEnabled = false; }
static private void OnStartup() { try { RIExceptionManager.OnStartup(); MessageQueue.OnStartup(); MessageManager.OnStartup(); RIListenerGroupManager.OnStartup(); DebugManager.OnStartup(); RILogManager.OnStartup(); RIMessageColors.OnStartup(); TraceMethod.OnStartup(); ReflectInsight.OnStartup(); RIEventManager.DoOnStartup(); RITraceListener.OnStartup(); } catch (Exception ex) { RIExceptionManager.Publish(ex, "Failed during: static ReflectInsightService.OnStartup()"); } }