// The main entry point for IOT Apps public void Run(IBackgroundTaskInstance taskInstance) { // If we are running from the PiRunner this will be null. if (taskInstance != null) { // Grab the background deferral so we can run forever. m_deferral = taskInstance.GetDeferral(); } // Make the smarts and run away. m_glowSmarts = new GlowSmarts(); m_glowSmarts.Run(); }