Skip to content

Minimal example of how the CefSharp library can be used

License

Notifications You must be signed in to change notification settings

TKGNET/CefSharp.MinimalExample

 
 

Repository files navigation

CefSharp.MinimalExample

Demo for CefSharpIssue[#2903]: Custom ResourceHandler Unable to Load Image

This demo creates custom RequestHandler / ResourceResponseHandler // MemoryStreamResponseFilter to access response payload in CefWinforms They are simplified versions from CefSharp master: ExampleRequestHandler / ExampleRequestResourceHandler / MemoryStreamResponseFilter

Goal is to access the response payload by copying the responseStream a memoryStream and finalizing it in the LoadComplete method.

This has worked in previous versions of CefSharp, but not in this tested version 75.

Reason: Currently MemoryStreamResponseFilter.Dispose is always called IMMEDIATELY before IRequestResourceHandler.LoadCompleted and the memoryStream is set to null.

About

Minimal example of how the CefSharp library can be used

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%