Exemple #1
0
        public PerThisAdvice(IEnumerable <IPointcut> pointcuts, Type aspectType)
            : base(pointcuts)
        {
            var lifecycleAspectType = typeof(PerThisLifecycleAspect <>).MakeGenericType(aspectType);

            this.aspectType = aspectType;
            aroundAdvice    = new AroundAdvice(pointcuts, lifecycleAspectType.GetMethod("Bind"))
            {
                Priority = 900
            };
        }
Exemple #2
0
 public void Setup()
 {
     advice = (AroundAdvice) new AttributiveAspectProvider().GetDefinition(typeof(TestWithOnMemberBoundaryAttribute)).Advices.Single();
 }