Click or drag to resize

PlugInGetLicense Method (LicenseBuildType, ValidateProductKeyDelegate, OnLeaseChangedDelegate)

Verifies that there is a valid product license for your plug-in, using the Rhino licensing system. If the plug-in is installed as a standalone node, the locally installed license will be validated. If the plug-in is installed as a network node, a loaner license will be requested by the system's assigned Zoo server. If the Zoo server finds and returns a license, then this license will be validated. If no license is found, then the user will be prompted to provide a license key, which will be validated.

Namespace:  Rhino.PlugIns
Assembly:  RhinoCommon (in RhinoCommon.dll)
protected bool GetLicense(
	LicenseBuildType productBuildType,
	ValidateProductKeyDelegate validateProductKeyDelegate,
	OnLeaseChangedDelegate leaseChangedDelegate


Type: Rhino.PlugInsLicenseBuildType
The product build contentType required by your plug-in.
Type: Rhino.PlugInsValidateProductKeyDelegate
Since the Rhino licensing system knows nothing about your product license, you will need to validate the product license provided by the Rhino licensing system. This is done by supplying a callback function, or delegate, that can be called to perform the validation.
Type: Rhino.PlugInsOnLeaseChangedDelegate
Called by the ZooClient when the cloud zoo lease is changed.

Return Value

Type: Boolean
true if a valid license was found. false otherwise.
See Also