Using Application Class

I am trying to understand how the Application class works. I worked with the CarWash example for some testing but as I start design work on my full application I need a better understanding of how it works.

Once Application.Run() is called any code after that does not run. Any threads started before Application.Run() continue to run. What is best practice for long-running threads like Web Server, File Systems, Modbus, MQTT, etc; should they be started before the Application or within the application?

Is there any additional documentation around that explains more in-depth how the Application class works?

Thanks! You guys have been incredibly helpful with this project.

it doesn’t matter, it is a thread.