public static void Add(MethodBase method, Delegate hookDelegate)
 {
     if (!(OnAdd?.InvokeWhileTrue(method, hookDelegate) ?? true))
     {
         return;
     }
     GetEndpoint(method).Add(hookDelegate);
     AddEntry(HookEntryType.Hook, method, hookDelegate);
 }