SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 215 forks source link

How to run code on exit #105

Closed eivarin closed 4 years ago

eivarin commented 4 years ago

I need to run code on application exit to properly close another functionality. How would I do it?

eivarin commented 4 years ago

I found a way to do this for those who are interested I modified the components desktop class to be able to run code on exit after the WaitForExit() line. If you put code after that line it will only run after closing the window.