Exemplo n.º 1
0
        private int onBlacklist(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(Blacklisted?.Invoke(session, url, categories) ?? 0);
        }
Exemplo n.º 2
0
 public int OnBlacklisted(Session session, string url, int[] categories)
 {
     return(Blacklisted?.Invoke(session, url, categories) ?? 0);
 }