/// <summary> /// Assembly to skip? /// </summary> /// <param name="frameWithIndex">Find assembly via this frame. </param> /// <returns><c>true</c>, we should skip.</returns> public bool SkipAssembly(StackFrameWithIndex frameWithIndex) { var method = frameWithIndex.StackFrame.GetMethod(); var assembly = method.DeclaringType != null ? method.DeclaringType.Assembly : method.Module.Assembly; // skip stack frame if the method declaring type assembly is from hidden assemblies list var skipAssembly = SkipAssembly(assembly); return(!skipAssembly); }
public bool CheckStackFrameNotEqual(StackFrameWithIndex frame) { return(!IsLoggerType(frame.StackFrame, loggerType)); }