Click or drag to resize
LicenseHelperEmbeddedLicenseAssembly Property
Gets or sets an Assembly that contains the embedded license key (its project contains the license.licx file as Embedded Resource).

Namespace: Ab3d.Licensing.Reader3ds
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public static Assembly EmbeddedLicenseAssembly { get; set; }

Property Value

Type: Assembly
Remarks
Note Note
Ab2d.Licensing.Reader3ds.LicenseHelper is available only in the commercial version (not in evaluation version).

When the project that is using Reader3ds is compiled and the project contains the correct license.licx file, the compiler calls the licensing code in Reader3ds that checks the installed license key and creates a runtime license key from it. The runtime license key is stored into the compiled assembly (the one that contains the license.licx) as embedded resource.

When the Reader3ds is used in run-time the licensing code first tries to find the embedded runtime license key. Because from the Reader3ds assembly it is not possible to get the assembly that references Reader3ds, it is usually needed to check resources in multiple assemblies to find the one with embedded license key.

To prevent checking multiple assemblies, it is possible to manually specify the assembly that contains the embedded license key with setting the EmbeddedLicenseAssembly property.

Without setting the EmbeddedLicenseAssembly property, the licensing code will still find the embedded license key but this process will take a little bit longer.

IMPORTANT:
The EmbeddedLicenseAssembly must be set before the constructor of the Reader3ds is called!
It is recommended that the EmbeddedLicenseAssembly is set in the constructor of the class that is using Reader3ds and before call to InitializeComponent method.

Examples

The following code shows how to set the assembly in the constructor of the class that is using Reader3ds.

public class MyClass()    
{
    public MyClass()
    {
        Ab3d.Licensing.Reader3ds.LicenseHelper.EmbeddedLicenseAssembly = typeof(MyClass).Assembly;

        InitializeComponent();
    }
}
See Also