Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
developer:zoorhinocommonplugin [2020/11/25]
sandy [Creating a Rhino .NET Plug-in using RhinoCommon]
developer:zoorhinocommonplugin [2020/11/25]
sandy [Managing your License]
Line 26: Line 26:
   - Launch Rhino and use **PlugInManager** to install your plugin (to verify that it was correctly built).   - Launch Rhino and use **PlugInManager** to install your plugin (to verify that it was correctly built).
  
-===== Adding Licensing Support to your Plug-in Project ===== +===== Adding Licensing Support to your Plugin Project ===== 
-After you have built and tested your basic plug-in, you can add licensing support as follows: +After you have built and tested your basic plugin, you can add licensing support as follows: 
-  - In your plug-in's **Rhino.PlugIns** inherited class, create a new method with the same signature as the **Rhino.PlugIns.ValidateProductKeyDelegate** delegate. Rhino will call into this function whenever it needs your plug-in to validate a license that is entered by a user, returned by the Rhino license manager (standalone node), or returned from a Zoo server (network node). For details, see the example RhinoCommon plug-ins listed below. +  - In your plugin's **Rhino.Plugins** inherited class, create a new method with the same signature as the **Rhino.Plugins.ValidateProductKeyDelegate** delegate. Rhino will call into this function whenever it needs your plugin to validate a license that is entered by a user, returned by the Rhino license manager (standalone node), or returned from a Zoo server (network node). For details, see the example RhinoCommon plugins listed below. 
-  - In your plug-in's **OnLoad** member, call **Rhino.PlugIns.GetLicense** and pass it the build type of the license required by your productand your delegate function. +  - In your plugin's **OnLoad** member, call **Rhino.Plugins.GetLicense** and pass it the build type of the license required by your product and your delegate function. 
-  - Build your plug-in+  - Build your plugin
-  - [[developer:digital-signatures/create-request|Digitally sign your plug-in.]] +  - Digitally sign your plugin
-  - Launch Rhino and test your plug-in. When your plug-in is loaded for the first time, you will be prompted to enter a license.+  - Launch Rhino and test your plugin. When you load your plugin for the first time, you will be prompted to enter a license.
 {{:developer:licensenotfoundcs.png|}} {{:developer:licensenotfoundcs.png|}}
  
 ===== Managing your License ===== ===== Managing your License =====
-Rhino plug-ins that use the Rhino license manager appear in the Licenses page of the Options dialog. Here, the user is allowed to view and manage the license.+Rhino plugins that use the Rhino license manager appear in the Licenses page of the Options dialog. Here, the user is allowed to view and manage the license.
  
 {{:developer:licensetools.png|}} {{:developer:licensetools.png|}}