コード例 #1
0
        /// <summary>
        /// Sets plugin information
        /// </summary>
        /// <param name="pBase">The C-DEngine is creating a Host for this engine and hands it to the Plugin Service</param>
        public override void InitEngineAssets(IBaseEngine pBase)
        {
            base.InitEngineAssets(pBase);
            MyBaseEngine.SetEngineName(eEngineName.ThingService);        //Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetFriendlyName("The Thing Service");

            MyBaseEngine.GetEngineState().IsAllowedUnscopedProcessing = TheBaseAssets.MyServiceHostInfo.IsCloudService;
            MyBaseEngine.SetEngineID(new Guid("{BDCD0A12-37CD-4F8A-A96A-EEC7117C9863}"));

            MyBaseEngine.SetVersion(TheBaseAssets.BuildVersion);

            MyThingRegistry = new TheThingRegistry();
            MyThingRegistry.Init(); //This is now synchron. sinkThingsReady was never doing anything as mIsInitialized is set much later
        }