The message is received by the browser correctly, but then interesting thing happens. If user send request the second time (click the button) then 2 requests are sent, next time 3 requests and so on.
During initialization (In program.cs) i do register once the below SchemeHandler. No other initialisation is done anywhere. Does anybody seen similar behaviour?
- Code: Select all
CefRuntime.RegisterSchemeHandlerFactory("http", DumpRequestDomain, new DemoAppSchemeHandlerFactory());
Below is the actual handler.
- Code: Select all
class DemoAppSchemeHandlerFactory : CefSchemeHandlerFactory
{
protected override CefResourceHandler Create(CefBrowser browser, CefFrame frame, string schemeName, CefRequest request)
{
return new MySchemeHandler();
}
}