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 

Updating current licence's Application Data

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



Joined: 24 Apr 2012
Posts: 30

PostPosted: Sun May 20, 2018 12:36 am    Post subject: Updating current licence's Application Data Reply with quote

When I generate a new license I use the following code in my customGenerator:

Code:

        string auData = string.Format("{0}|{1}|{2:s}|{3}|{4:s}|{5}",
          form.MaxCourts,
          LicenseUtilities.Checksum(form.LicensedTo),
          form.DOP,
          yn,
          form.ExpiresOn,
          form.LicencedVersion);

        data.AuthenticationData = auData;


What I would like to do is alter one of those paramaters (form.ExpiresOn) as I use that date to determine when their support expires. At present, I issue a new key that the end user installs.

How do I go about this?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue May 22, 2018 11:04 am    Post subject: Reply with quote

If you return true from the ICustomGenerator.SupportsUpdateAuthenticationData method then License Tracker will call your ICustomGenerator.UpdateAuthenticationData method when the user selects a key in License Tracker and clicks on the Authentication > Set Authentication Data menu. Your UpdateAuthenticationData method can unpack the existing AuthenticationData (if you want) and display your form to allow the user to update the expiry date.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
manlyboy



Joined: 24 Apr 2012
Posts: 30

PostPosted: Thu May 24, 2018 1:41 am    Post subject: Reply with quote

Thanks ...
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