예제 #1
0
        private IInterceptor CreateInterceptor(InterceptorAttribute interceptorAttribute)
        {
            if (String.IsNullOrEmpty(interceptorAttribute.InterceptorName))
            {
                return Container.GetInstance(interceptorAttribute.InterceptorType) as IInterceptor;
            }

            return Container.GetInstance(interceptorAttribute.InterceptorType, interceptorAttribute.InterceptorName) as IInterceptor;
        }
예제 #2
0
 private static int SortOrder(InterceptorAttribute a)
 {
     return a.Order;
 }