I'm diving into the coding part of homegenie. I'm having issues with having my program run consistently. It only seems to be run if I compile and click run. My assumption is homegenie runs like a PLC, constantly checking the running programs in order. Please correct me if I'm wrong.
My confusion comes in in when is the Startup code actually run? Is it run once? Every time the server calls the program? Once a program is running does it then ignore the startup code?
I put Program.Run() in my startup and Program.GoBackground() at the end of my main.