-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Rework ResourceHandler #674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework ResourceHandler #674
Conversation
…ceHandler interface
|
@jankurianski I decided to extract Resouce handling into it's own Thoughts? |
|
Cool! Taking a look now. |
|
Works great. I tested it out by updating the The only potential issue could be that |
|
Actually, there is a bit of a problem: if you call |
|
Perhaps handler.UnregisterHandler(url);
handler.RegisterHandler(url, CefSharp.ResourceHandler.FromString(html)); |
…hrow and exception All user to specify Comparer for dictionary
Users can always manually unregister the Url if required.
Nice pickup, thanks! 👍 |
|
Commit b104cd7 should fix the multiple registration bug |
That should do the trick! 👍 |
|
@Jayman1305 As you submitted a PR related to |
|
@jornh Do you think a |
|
@amaitland No let's go straight for the |
Includes a few changes around Resource Handling
DefaultResourceHandlerimplementation, soLoadHtmlcan easily be replaced with aResourceHandlerWPFandWinFormsexamples to reflect the changes.CefTerminationStatus(unrelated commit)