private int onWhitelist(long handle, GoString goUrl, IntPtr categoriesPtr, int categoryLen)
        {
            int[] categories = new int[categoryLen];

            Marshal.Copy(categoriesPtr, categories, 0, categoryLen);
            Session session = new Session(handle, new Request(handle), new Response(handle));
            string  url     = goUrl.AsString;

            return(Whitelisted?.Invoke(session, url, categories) ?? 0);
        }
 public int OnWhitelisted(Session session, string url, int[] categories)
 {
     return(Whitelisted?.Invoke(session, url, categories) ?? 0);
 }