Beispiel #1
0
        public static bool Start()
        {
            bool bResult = false;

            if (MyBaseApplication == null)
            {
                MyBaseApplication = new TheBaseApplication();    // Create a new Base (C-DEngine IoT) Application
            }
            if (MyBaseApplication != null)
            {
                // Start the C-DEngine Application. If a PluginService class is added DIRECTLY
                // to the host project you can instantiate the Service here replacing the null
                // with "new cdePluginService1()"
                bResult = MyBaseApplication.StartBaseApplication(null, MySettings.ArgList);
                if (bResult)
                {
                    // Select either user manager or scope manager. But not both!!
                    // MySettings.InitUserManager();
                    strScopeID = MySettings.InitScopeManager(strScopeID, 255);
                }
            }

            return(bResult);
        }