Ejemplo n.º 1
0
        IResponseFilter IRequestHandler.GetResourceResponseFilter(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response)
        {
            var args = new GetResourceResponseFilterEventArgs(browserControl, browser, frame, request, response);

            GetResourceResponseFilterEvent?.Invoke(this, args);
            return(args.ResponseFilter);
        }
Ejemplo n.º 2
0
        IResponseFilter IRequestHandler.GetResourceResponseFilter(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response)
        {
            var args = new GetResourceResponseFilterEventArgs(browserControl, browser, frame, request, response);

            ExecuteEventHandler <GetResourceResponseFilterEventArgs>(GetResourceResponseFilterEvent, args);
            return(args.ResponseFilter);
        }