Exemplo n.º 1
0
        public DefaultNonAspectTest()
        {
            var c = new AspectConfiguration();

            defaultTypePredicate   = c.NonPredicates.BuildNonAspectTypePredicate();
            defaultMethodPredicate = c.NonPredicates.BuildNonAspectMethodPredicate();
        }
 public static AspectPredicateCollection AddMethod(this AspectPredicateCollection collection, AspectMethodPredicate predicate)
 {
     collection.MethodPredicates.Add(predicate);
     return(collection);
 }
Exemplo n.º 3
0
 public InterceptorCreator(IAspectConfiguration configuration)
 {
     IsNonAspectType    = configuration.NonPredicates.BuildNonAspectTypePredicate();
     IsNonAspectMethod  = configuration.NonPredicates.BuildNonAspectMethodPredicate();
     this.configuration = configuration;
 }