예제 #1
0
        public AspectAroundInterceptor(AspectArround aroundAttribute, AspectAfter aspectAfter, AspectAfterThrows chainAspectAfterThrows)
        {
            _aroundAttribute = aroundAttribute;
            if (aspectAfter != null)
            {
                _aspectAfter = new AspectAfterInterceptor(aspectAfter, true);
            }

            if (chainAspectAfterThrows != null)
            {
                _aspectThrows = new AspectAfterThrowsInterceptor(chainAspectAfterThrows, true);
            }
        }
예제 #2
0
 public AspectAroundInterceptor(RunTimePointcutMethod <Around> pointCutMethod, AspectAfterInterceptor aspectAfter, AspectAfterThrowsInterceptor chainAspectAfterThrows)
 {
     _pointCutMethod = pointCutMethod;
     _aspectAfter    = aspectAfter;
     _aspectThrows   = chainAspectAfterThrows;
 }