Example #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);
            }
        }
 public AspectAfterThrowsInterceptor(AspectAfterThrows throwAttribute, bool isFromAround = false)
 {
     _aspectThrowing = throwAttribute;
     _isFromAround   = isFromAround;
 }