示例#1
0
            /// <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);
            }
示例#2
0
 public bool CheckStackFrameNotEqual(StackFrameWithIndex frame)
 {
     return(!IsLoggerType(frame.StackFrame, loggerType));
 }