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 

Different types of licenses in one application
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
Javier



Joined: 09 Oct 2009
Posts: 215

PostPosted: Sat Sep 13, 2014 4:25 pm    Post subject: Reply with quote

It works. However, I think that the problem could happen also for existing Floating licenses. They might not be detected since the default setting is now False. I would suggest the following code instead:
Code:
 _localLicense = _localLicenseProvider.GetLicense();
            while (!LoadLicense() && !_localLicenseProvider.IsValid(_localLicense))
            {               
                EvaluationMonitor evaluationMonitor = new RegistryEvaluationMonitor("MyEvaluationPassword");
                EvaluationDialog evaluationDialog = new EvaluationDialog();
                EvaluationDialogResult dialogResult = evaluationDialog.ShowDialog(evaluationMonitor);
                if (dialogResult == EvaluationDialogResult.Exit) return;    // exit the app
                if (dialogResult == EvaluationDialogResult.Continue) break; // exit the loop
                if (dialogResult == EvaluationDialogResult.InstallLicense)
                {
                    InstallLicense();
                }
            }
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Sep 14, 2014 12:56 pm    Post subject: Reply with quote

Since floating licenses are not stored on the local system (they are always obtained dynamically from the server) this shouldn't be a problem. However it is only a sample project - so you can modify the logic if you wish.
_________________
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
Goto page Previous  1, 2
Page 2 of 2

 
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