What's the most performance effective way to have a webbrowser inside a class library ?
- by Xaqron
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