public IResponseFilter GetResourceResponseFilter(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response) { var url = new Uri(request.Url); return(FilterManager.CreateOrGetFilter(request.Identifier.ToString())); }
public void OnResourceLoadComplete(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response, UrlRequestStatus status, long receivedContentLength) { if (request.Url.Contains("future/refreshFutureFulLPub.do")) { var filter = FilterManager.CreateOrGetFilter(request.Identifier.ToString()) as FuturesResponseFilter; string str = System.Text.Encoding.Default.GetString(filter.dataAll.ToArray()); filter_NotifyOrderData(str); //filter.NotifyData(filter.dataAll.ToArray()); } }