Esempio n. 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.");
     }
 }
Esempio n. 2
0
        public bool ShouldInterceptMethod(Type type, MethodInfo methodInfo)
        {
            var intercept = Once.Has(methodInfo);

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