private static bool SkipAssembly(Assembly assembly) { if (assembly == nlogAssembly) { return(true); } if (assembly == mscorlibAssembly) { return(true); } if (assembly == systemAssembly) { return(true); } if (LogManager.IsHiddenAssembly(assembly)) { return(true); } return(false); }
/// <summary> /// Assembly to skip? /// </summary> /// <param name="frame">Find assembly via this frame. </param> /// <returns><c>true</c>, we should skip.</returns> private static bool SkipAssembly(StackFrame frame) { var assembly = StackTraceUsageUtils.LookupAssemblyFromStackFrame(frame); return(assembly == null || LogManager.IsHiddenAssembly(assembly)); }