What's the most performance effective way to have a webbrowser inside a class library ?
Posted
by
Xaqron
on Stack Overflow
See other posts from Stack Overflow
or by Xaqron
Published on 2010-12-26T00:37:48Z
Indexed on
2010/12/26
0:54 UTC
Read the original article
Hit count: 158
I'm developing a class library. Need some data from internet and this cannot be done with HttpWebRequest
in my case so I wanna use WebBrowser
component. WebBrowser
is used for opening a single page and fetch some data from it, so WebBrowser
life-time is very short.
Running thread is MTA
and no message pump or STA
thread is available by default (class library is used by an ASP.NET
application).
How to create a WebBrowser
object, run it with a STA
thread, fetch data from a web page and finally dispose it with the least performance impact on the application ?
I just need the idea/concept and will find details myself.
Thanks guys
© Stack Overflow or respective owner