View previous topic :: View next topic |
Author |
Message |
magixxfactory
Joined: 20 Feb 2006 Posts: 15
|
Posted: Mon Aug 12, 2013 8:40 am Post subject: Store license data in a database instead of a lic file |
|
|
Hello,
is it possible to store the license data instead in a database (like sqlserver) instead of a lic file ?
If yes, is there a sample available ?
Thanks and regards
Uwe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Aug 15, 2013 10:40 pm Post subject: |
|
|
Yes this is possible by inheriting from EncryptedLicenseProvider or AuthenticatedLicenseProvider (depending which one you are using) and then overriding the WriteLicense(string fileName) and ReadLicense(string fileName) to instead read and write the license to your database. You can call the WriteLicenseToString/ReadLicenseFromString methods to write the license to a string that you then save/load in the database. You would also need to override the UninstallLicense method to remove the license.
I'm sorry we don't have a sample. _________________ Infralution Support |
|
Back to top |
|
|
|