Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
Hello,
I have a small wpf-app following the browser example from the full-package. It looks like certain tasks my users needs to do are repetitive and I am investigating the possibility to run this into a docker as a ui-less process. I am not doing anything fancy in particular - just "listen" to some events (before-navigate, doc-complete, new-window), run some javascripts and read the html.
Afaik, EO libraries can support the WebBrowser to be ran without UI and this should be enough for docker.
My question is - are there any guidelines/samples/patterns/rules on how to quickly and safely convert an UI browser app into a ui-less one?
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
There isn't any specific guidelines. One basic rule is you will need to use the ThreadRunner object to run the WebViews. Do NOT create or run WebViews in your own worker thread. Other than that everything else works pretty much the same.
Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
I am not very familiar with ThreadRunner ... Is it possible to see somewhere an example? I searched the samples pack, but no help there. A link maybe should be more than enough!
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
|