Inheritance: CorThreadEventArgs
		void OnLogMessage (object sender, CorLogMessageEventArgs e)
		{
			OnTargetOutput (false, e.Message);
			e.Continue = true;
		}
Beispiel #2
0
        // Log Messages are not dispatched unless ICorDebugProcess::EnableLogMessages is called.
        private void LogMessageEventHandler(Object sender, CorLogMessageEventArgs e)
        {
            Trace.WriteLine("ManagedCallback::LogMessage(" + e.LogSwitchName + ", " + e.Message + ")");
            BeginManagedDebugEvent();
            try
            {
                if (InternalHandleRawMode(ManagedCallbackType.OnLogMessage, e))
                    return;

                if (HandleCustomPostCallback(ManagedCallbackType.OnLogMessage, e))
                    return;

                if (m_engine.Options.StopOnLogMessage)
                {
                    e.Continue = false;
                    InternalSignalRuntimeIsStopped(e.Thread, new LogMessageStopReason(e.LogSwitchName, e.Message));
                }
            }
            finally
            {
                EndManagedDebugEvent(e);
            }
        }