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 

Store license data in a database instead of a lic file

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



Joined: 20 Feb 2006
Posts: 15

PostPosted: Mon Aug 12, 2013 8:40 am    Post subject: Store license data in a database instead of a lic file Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Aug 15, 2013 10:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
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