Exemplo n.º 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;
        }
Exemplo n.º 2
0
 private static int SortOrder(InterceptorAttribute a)
 {
     return a.Order;
 }