示例#1
0
        private bool ShouldTraceBasedOnAssemblyLevelInfo(MethodDefinition definition)
        {
            //get matching assembly level rule (note that defs are ordered from more specific to least specific. On same level noTrace trumps traceOn)
            AssemblyLevelTraceDefinition rule = _assemblyLevelTraceDefinitions.FirstOrDefault(
                def => def.IsMatching(definition));

            if (rule != null)
            {
                return(rule.ShouldTrace());
            }

            return(false);
        }
示例#2
0
 protected bool Equals(AssemblyLevelTraceDefinition other)
 {
     return(_targetClass == other._targetClass && _targetMethod == other._targetMethod);
 }