Ejemplo n.º 1
0
 /// <summary>
 /// Changes current pointcut to intersection of the current and supplied pointcut
 /// </summary>
 /// <param name="other">pointcut to diff against</param>
 /// <returns>updated pointcut</returns>
 public virtual ComposablePointcut Intersection(IPointcut other)
 {
     _typeFilter    = TypeFilters.Intersection(_typeFilter, other.TypeFilter);
     _methodMatcher = MethodMatchers.Intersection(_methodMatcher, other.MethodMatcher);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Changes the current method matcher to be the intersection of the existing matcher
 /// and the supplied <paramref name="matcher"/>.
 /// </summary>
 /// <param name="matcher">The matcher to diff against.</param>
 /// <returns>
 /// The intersection of the existing matcher and the supplied <paramref name="matcher"/>.
 /// </returns>
 public virtual ComposablePointcut Intersection(IMethodMatcher matcher)
 {
     _methodMatcher = MethodMatchers.Intersection(_methodMatcher, matcher);
     return(this);
 }