internal static CefExtensionHandler FromNativeOrNull(cef_extension_handler_t *ptr)
        {
            CefExtensionHandler value = null;
            bool found;

            lock (_roots)
            {
                found = _roots.TryGetValue((IntPtr)ptr, out value);
            }
            return(found ? value : null);
        }
Пример #2
0
 /// <summary>
 /// Returns the handler for this extension. Will return NULL for internal
 /// extensions or if no handler was passed to CefRequestContext::LoadExtension.
 /// </summary>
 public CefExtensionHandler GetHandler()
 {
     return(CefExtensionHandler.FromNativeOrNull(
                cef_extension_t.get_handler(_self)
                ));
 }