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); }
protected bool Equals(AssemblyLevelTraceDefinition other) { return(_targetClass == other._targetClass && _targetMethod == other._targetMethod); }