예제 #1
0
        public void Intercept(IInvocation invocation)
        {
            Type[] types = invocation.TargetType.GetInterfaces();
            foreach (Type t in types)
            {
                switch (t.Name)
                {
                case "ILogging":
                    _logging.Intercept(invocation);
                    return;

                case "IQCaching":
                    _qCachingInterceptor.Intercept(invocation);
                    return;
                }
            }
        }
예제 #2
0
 public void Intercept(IInvocation invocation)
 {
     _qCachingInterceptor.Intercept(invocation);
     _logging.Intercept(invocation);
 }