private void EmbeddedResourceHandler_ProcessRequest(object sender, Chromium.Event.CfxProcessRequestEventArgs e)
        {
            readResponseStreamOffset = 0;
            var request  = e.Request;
            var callback = e.Callback;

            //var uri = new Uri(request.Url);

            var refurl = request.ReferrerUrl;

            requestUrl = request.Url;

            Console.WriteLine("requrl: " + requestUrl);
            Console.WriteLine("reffer url : " + refurl);

            var uri = ResourceHelper.ResolveUri(requestUrl);

            string resourceMimeType;
            string resourceName;
            var    ass = GetResourceInfo(uri, out resourceMimeType, out resourceName);

            if (!string.IsNullOrEmpty(resourceName) && ass.GetManifestResourceInfo(resourceName) != null)
            {
                webResource = GetWebResource(uri, ass, resourceName, resourceMimeType);
                browser.SetWebResource(uri.ToString(), webResource);


                Console.WriteLine($"[加载]:\t{requestUrl}");


                callback.Continue();
                e.SetReturnValue(true);
            }
            else
            {
                webResource = GetNonFoundWebResource(uri, resourceMimeType);
                browser.SetWebResource(uri.ToString(), webResource);


                Console.WriteLine($"[未找到]:\t{requestUrl}");

                //callback.Continue();
                //e.SetReturnValue(false);
                callback.Continue();
                e.SetReturnValue(true);
            }
        }
        private void LocalResourceHandler_ProcessRequest(object sender, Chromium.Event.CfxProcessRequestEventArgs e)
        {
            readResponseStreamOffset = 0;
            var request  = e.Request;
            var callback = e.Callback;

            // var uri = new Uri(request.Url);

            requestUrl = request.Url;

            var uri = ResourceHelper.ResolveUri(requestUrl);

            var fileName = GetResourceFileName(uri);


            requestFile = request.Url;


            if (System.IO.File.Exists(fileName))
            {
                webResource = GetWebResource(uri, fileName);
                browser.SetWebResource(uri.ToString(), webResource);

                Console.WriteLine($"[╪сть]:\t{requestUrl}\t->\t{fileName}");
            }
            else
            {
                Console.WriteLine($"[н╢ур╣╫]:\t{requestUrl}");
                //callback.Continue();
                //e.SetReturnValue(false);

                webResource = GetNonFoundWebResource(uri, fileName);
                browser.SetWebResource(uri.ToString(), webResource);
            }



            callback.Continue();
            e.SetReturnValue(true);
        }