/// <summary> /// Set all values at one time. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void Set(string url, string method, CfrPostData postData, System.Collections.Generic.List <string[]> headerMap) { var call = new CfxRequestSetRemoteCall(); call.@this = RemotePtr.ptr; call.url = url; call.method = method; call.postData = CfrObject.Unwrap(postData).ptr; call.headerMap = headerMap; call.RequestExecution(RemotePtr.connection); }
/// <summary> /// Set all values at one time. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_capi.h">cef/include/capi/cef_request_capi.h</see>. /// </remarks> public void Set(string url, string method, CfrPostData postData, System.Collections.Generic.List <string[]> headerMap) { var connection = RemotePtr.connection; var call = new CfxRequestSetRemoteCall(); call.@this = RemotePtr.ptr; call.url = url; call.method = method; if (!CfrObject.CheckConnection(postData, connection)) { throw new ArgumentException("Render process connection mismatch.", "postData"); } call.postData = CfrObject.Unwrap(postData).ptr; call.headerMap = headerMap; call.RequestExecution(connection); }