Does CoreWebView2Environment.CreateWebResourceResponse dispose the content stream #3873
Unanswered
fvanheeswijk
asked this question in
Q&A
Replies: 2 comments
-
Good question @fvanheeswijk, have you ever found out? At least a direct file stream stays open after passing it to the method, so I would say it is never disposed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bump, also interested in this. Have confirmed that streams given to CoreWebView2WebResourceRequest & CoreWebView2WebResourceResponse are not disposed, and there doesn't seem to be a way to tell when the class is finished with the stream (happy to be pointed to what I've missed). Is there a best practice for when a WebResource's stream should be disposed? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are using CoreWebView2Environment.CreateWebResourceResponse and are unsure whether this method disposes the stream itself when the response is finished or if it for example creates a copy of the stream.
So our question is, are we allowed to dispose the content stream after passing it to this method?
Beta Was this translation helpful? Give feedback.
All reactions