Providing Customer Service and Product Information

When DeployLX displays a form to the user, the Get Help window includes contact information such as the customer service email and phone number. 

In This Sample

This information is provided to DeployLX through the SupportInfo class which is populated in one of two ways.

Using the LicenseHelpAttribute

Add a LicenseHelp attribute to the AssemblyInfo file of the protected assembly.

Imports DeployLX.Licensing.v5

<Assembly: LicenseHelp(_
            Company:="XHEO INC",_
            Email:="support@xheo.com",_
            Website:="http://www.deploylx.com")>
using DeployLX.Licensing.v5;

[assembly: LicenseHelp( 
            Company="XHEO INC", 
            Email="support@xheo.com", 
            Website="http://www.deploylx.com" )]

Setting Properties at Runtime

Private info As New LicenseValidationRequestInfo()
Private info.SupportInfo = LicenseHelpAttribute.GetSupportInfo(GetType(MyProtectedClass))
If IsOemBranded() Then
    info.SupportInfo.Company = GetOemName()
    info.SupportInfo.Phone = GetOemPhone()
    info.SupportInfo.Email = GetOemEmail()
End If
_license = SecureLicenseManager.Validate(Me, Nothing, info)
var info = new LicenseValidationRequestInfo();
info.SupportInfo = LicenseHelpAttribute.GetSupportInfo( 
                        typeof( MyProtectedClass ) );
if( IsOemBranded() )
{
    info.SupportInfo.Company = GetOemName();
    info.SupportInfo.Phone = GetOemPhone();
    info.SupportInfo.Email = GetOemEmail();
}
_license = SecureLicenseManager.Validate( this, null, info );
Published : Oct 19, 2011
Updated : Jan 08, 2012
Views : 2599

Downloads