public static void GetTrace(StringBuilder sb)
{
if (!WorksInThisRuntime)
{
sb.AppendLine("Not Supported");
return;
}
try
{
object timerQueue = s_timerQueueInstanceMethod.Invoke(null, null);
lock (timerQueue)
{
object timerQueueTimer = s_timerQueueTimersField.GetValue(timerQueue);
while (timerQueueTimer != null)
{
ProcessTimerQueueTimer(sb, timerQueueTimer);
timerQueueTimer = s_timerQueueTimerNextField.GetValue(timerQueueTimer);
}
}
}
catch (Exception ex)
{
Log.Publish(MessageLevel.Error, MessageFlags.BugReport, "Error in GetTrace", null, null, ex);
WorksInThisRuntime = false;
}
}