コード例 #1
0
 /// <summary>
 ///
 /// </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 = pBase;
     MyBaseEngine.SetEngineID(new Guid("{A5FD8A57-C4B9-4EDB-8965-082D3F466E33}"));
     MyBaseEngine.SetFriendlyName("The Web Relay Service");
     MyBaseEngine.GetEngineState().IsAllowedUnscopedProcessing = TheBaseAssets.MyServiceHostInfo.IsCloudService;
 }
コード例 #2
0
        public void InitEngineAssets(IBaseEngine pEngine)
        {
            BaseEngine = pEngine;

            BaseEngine.SetEngineName($"{GetType()}");
            BaseEngine.SetEngineType(GetType());
            BaseEngine.SetFriendlyName("Smart Application Framework");
            BaseEngine.SetEngineService(true);

            BaseEngine.SetEngineID(new Guid("{F3114B76-7AFD-4A5E-8230-F86337FCDD2D}"));
            BaseEngine.SetPluginInfo("Smart Application Framework", 0, string.Empty, string.Empty, string.Empty, string.Empty, new List <string>());
            BaseEngine.SetVersion(GetPluginVersionFromAssemblyVersion());
        }
コード例 #3
0
        /// <summary>
        /// This constructor is called by The C-DEngine during initialization in order to register this service
        /// </summary>
        /// <param name="pBase">The C-DEngine is creating a Host for this engine and hands it to the Plugin Service</param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;
            MyBaseEngine.SetEngineName(GetType().FullName);
            MyBaseEngine.SetEngineType(GetType());
            MyBaseEngine.SetFriendlyName("My Visitor Log Service");
            MyBaseEngine.SetEngineService(true);

            MyBaseEngine.SetEngineID(new Guid("{AAE144FE-364F-4FA0-9E67-ABC0A3A26A53}"));
            MyBaseEngine.SetPluginInfo("This service allows you to track Visitors", 0, null, "toplogo-150.png", "C-Labs", "http://www.c-labs.com", null);

            MyBaseEngine.SetVersion(0);
        }
コード例 #4
0
        public void InitEngineAssets(IBaseEngine pEngine)
        {
            BaseEngine = pEngine;

            BaseEngine.SetEngineName("CDEPubSubTest");
            BaseEngine.SetEngineType(GetType());
            BaseEngine.SetFriendlyName("CDE SAF Pub/Sub Test");
            BaseEngine.SetEngineService(true);

            BaseEngine.SetEngineID(new Guid("{C15F6E9E-5099-4358-B6E3-79BC3BD18601}"));
            BaseEngine.SetPluginInfo("Test for CDE Pub/Sub", 0, string.Empty, string.Empty, string.Empty, string.Empty, new List <string>());
            BaseEngine.SetVersion(GetPluginVersionFromAssemblyVersion());
        }
コード例 #5
0
        /// <summary>
        /// This constructor is called by The C-DEngine during initialization in order to register this service
        /// </summary>
        /// <param name="pBase">The C-DEngine is creating a Host for this engine and hands it to the Plugin Service</param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;
            MyBaseEngine.SetEngineName(this.GetType().FullName);                          //Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetEngineType(this.GetType());                                   //Has to be the type of this class
            MyBaseEngine.SetFriendlyName("My Sample Service");                            //TODO: STEP 1: Give your plugin a friendly name
            MyBaseEngine.SetEngineService(true);                                          //Keep True if this class is a service

            MyBaseEngine.SetEngineID(new Guid("{BA3FE4B3-EF79-4308-A5EA-B8464A80BF33}")); //TODO: STEP 2: REQUIRED - set Plugin GUID
            MyBaseEngine.SetPluginInfo("This service allows you to ...<describe you service>", 0, null, "toplogo-150.png", "C-Labs", "http://www.c-labs.com", new List <string>()
            {
            });                                                                                                                                                                        //TODO: Describe your plugin - this will later be used in the Plugin-Store
            MyBaseEngine.SetVersion(3.200);
        }
コード例 #6
0
        /// <summary>
        /// This constructor is called by The C-DEngine during initialization in order to register this service
        /// </summary>
        /// <param name="pBase">The C-DEngine is creating a Host for this engine and hands it to the Plugin Service</param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;
            MyBaseEngine.SetEngineName(this.GetType().FullName);                          //Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetEngineType(this.GetType());                                   //Has to be the type of this class
            MyBaseEngine.SetFriendlyName("C-Labs Mesh Receiver");                         //TODO: Step 1: Give your plugin a friendly name
            MyBaseEngine.SetEngineService(true);                                          //Keep True if this class is a service

            MyBaseEngine.SetEngineID(new Guid("{BF99690D-6114-427F-B17A-A606BE3145BD}")); //TODO: Step 2 - set Plugin GUID
            MyBaseEngine.SetPluginInfo("This service allows to receive data from a CDEngine mesh and place them into CDEngine Things.", 0, null, "", "C-Labs and its licensors", "http://www.c-labs.com", new List <string>()
            {
            });

            MyBaseEngine.SetCDEMinVersion(4.011);
            MyBaseEngine.AddManifestFiles(new List <string>
            {
            });
        }
コード例 #7
0
        /// <summary>
        /// InitEngineAssets - The C-DEngine calls this initialization
        /// function as part of registering this service (engine)
        /// </summary>
        /// <param name="pBase">The C-DEngine creates a base engine object.
        /// This parameter is a reference to that base engine object.
        /// We keep a copy because it will be very useful to us.
        /// </param>
        public void InitEngineAssets(IBaseEngine pBase)
        {
            MyBaseEngine = pBase;

            MyBaseEngine.SetEngineID(guidEngineID);          // Unique identifier for our service (engine)
            MyBaseEngine.SetFriendlyName(strFriendlyName);

            MyBaseEngine.SetEngineName(GetType().FullName);     // Can be any arbitrary name - recommended is the class name
            MyBaseEngine.SetEngineType(GetType());              // Has to be the type of this class
            MyBaseEngine.SetEngineService(true);                // Keep True if this class is a service

            MyBaseEngine.SetPluginInfo("This service...",       // Describe plugin for Plugin Store
                                       0,                       // pPrice - retail price (default = 0)
                                       null,                    // Custom home page - default = /ServiceID
                                       "toplogo-150.png",       // pIcon - custom icon.
                                       "C-Labs",                // pDeveloper - name of the plugin developer.
                                       "http://www.c-labs.com", // pDeveloperUrl - URL to developer home page.
                                       new List <string>()
            {
            });                                                 // pCategories - Search categories for service.
        }