Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AuthenticatedLicenseInstallForm and string-persisted license

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
ancientOne



Joined: 26 May 2011
Posts: 26

PostPosted: Wed Jun 29, 2011 7:17 pm    Post subject: AuthenticatedLicenseInstallForm and string-persisted license Reply with quote

As I become more familiar with the ILS system and available methods for persistence of license data strings, the choices appear to be ILS-provided methods for registry or file storage, and the option of maintaining string data within our own databases.

I am currently persisting license data as string in our own database, but would like to utilize the standard ILS AuthenticatedLicenseInstallForm as a mechanism for user management of installed licenses for such things as license uninstall and file backup.

However, it appears that the ILS AuthenticatedLicenseInstallForm appears to be more oriented to working with license files (_licensefile) as a persistence mechanism.

Am I missing the interface between string-persisted license data and this dialog, or do I need to create temporary license files from my strings in order to work with this dialog? Or would you reccommend a different approach? Thanks.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jun 30, 2011 12:46 am    Post subject: Reply with quote

If you want to handle persisting the license yourself then you should derive a new class from AuthenticatedLicenseProvider and override the WriteLicense(licenseFile, license) method and the ReadLicense(licenseFile) methods. You can either ignore the licenseFile string parameter or use it (for instance if you needed to store multiple licenses in the database you could use it to identify the license).

Then you before you display the AuthenticatedLicenseInstallForm you should set the LicenseProvider property to an instance of your derived class (alternatively you can override the AuthenticatedLicenseInstallForm.GetLicenseProvider method).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
ancientOne



Joined: 26 May 2011
Posts: 26

PostPosted: Thu Jun 30, 2011 12:02 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group