Esempio n. 1
0
        /// <summary>
        /// Attempts to resolve |origin| to a list of associated IP addresses.
        /// |callback| will be executed on the UI thread after completion.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_context_capi.h">cef/include/capi/cef_request_context_capi.h</see>.
        /// </remarks>
        public void ResolveHost(string origin, CfxResolveCallback callback)
        {
            var origin_pinned = new PinnedString(origin);

            CfxApi.RequestContext.cfx_request_context_resolve_host(NativePtr, origin_pinned.Obj.PinnedPtr, origin_pinned.Length, CfxResolveCallback.Unwrap(callback));
            origin_pinned.Obj.Free();
        }
Esempio n. 2
0
 /// <summary>
 /// Attempts to resolve |origin| to a list of associated IP addresses.
 /// |callback| will be executed on the UI thread after completion.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_context_capi.h">cef/include/capi/cef_request_context_capi.h</see>.
 /// </remarks>
 public void ResolveHost(string origin, CfxResolveCallback callback)
 {
     var origin_pinned = new PinnedString(origin);
     CfxApi.cfx_request_context_resolve_host(NativePtr, origin_pinned.Obj.PinnedPtr, origin_pinned.Length, CfxResolveCallback.Unwrap(callback));
     origin_pinned.Obj.Free();
 }