示例#1
0
        public void SetUp()
        {
            _builder = new PointcutBuilder();

            _typePointcutAttribute       = new TypePointcutAttribute(typeof(int));
            _memberNamePointcutAttribute = new MemberNamePointcutAttribute("member");
            _andAttribute = new AndAttribute();
            _orAttribute  = new OrAttribute();
            _notAttribute = new NotAttribute();
        }
示例#2
0
        protected T[] CreatePointcuts <T>(AspectDefinition aspect, string name, params string[] saqls) where T : IPointcut, new()
        {
            var builder = new PointcutBuilder();

            return(saqls.Select(saql =>
            {
                var pointcut = aspect.AddPointcut <T>(name);
                builder.BuildFromSaql(aspect, saql, pointcut);
                return pointcut;
            }).ToArray());
        }