예제 #1
0
 public void NonProxyableMemberNotification(Type type, MemberInfo memberInfo)
 {
     if (Once.Has(memberInfo))
     {
         throw new Exception($"{memberInfo} must be virtual because it has the [Once] attribute.");
     }
 }
예제 #2
0
        public bool ShouldInterceptMethod(Type type, MethodInfo methodInfo)
        {
            var intercept = Once.Has(methodInfo);

            Logger.Debug("{method}: {intercept}", methodInfo, intercept);
            return(intercept);
        }
예제 #3
0
 internal static bool IsTarget(MethodInfo method)
 {
     return(Once.Has(method));
 }