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

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