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 }; }
public void Setup() { advice = (AroundAdvice) new AttributiveAspectProvider().GetDefinition(typeof(TestWithOnMemberBoundaryAttribute)).Advices.Single(); }