public void NonProxyableMemberNotification(Type type, MemberInfo memberInfo) { if (Once.Has(memberInfo)) { throw new Exception($"{memberInfo} must be virtual because it has the [Once] attribute."); } }
public bool ShouldInterceptMethod(Type type, MethodInfo methodInfo) { var intercept = Once.Has(methodInfo); Logger.Debug("{method}: {intercept}", methodInfo, intercept); return(intercept); }
internal static bool IsTarget(MethodInfo method) { return(Once.Has(method)); }