Dotcom Support Forums

To post in the forums you need to register and log in .

HomeHomeLicence MasterLicence MasterIntegrating Cli...Integrating Cli...LM v2 questionsLM v2 questions
Previous
 
Next
New Post
23/01/2013 19:55
 

Hi Paul,

We’re looking at the new version of LM and the Snowcovered adaptor and had a few questions I hope you can answer:

1. Can we have modules using both code version in the client modules and still upgrade the LM and SC modules on our licence server? Or do we need to upgrade all our modules to use the new client dll?

2. One attractive feature which we want to use is the Tolerance. Current we have this is our LicenceCache.vb file:

Public Function InstallationIsValid() As Boolean

            Dim cacheKey As String = String.Format(CacheKeys.InstallationValid, _licenceKey)

            Dim valid As Boolean = False

            Dim cachedValue As Object = DataCache.GetCache(cacheKey)

            If (cachedValue Is Nothing) Then

 

                valid = LicensingUtility.CanConnect() And LicensingUtility.InstallationIsValid()

                If (valid) Then

                    'Cache validity only if true

                    DataCache.SetCache(cacheKey, valid, New TimeSpan(7, 0, 0, 0))

                End If

            Else

                valid = CType(cachedValue, Boolean)

            End If

            Return valid

End Function

Can we leave this as is and just add in the Configurable Tolerance values into the Assembly.cs for it to work? Does your new class have this already available for us to use?

3. Does the client .dll now offer more builtin methods as in our previous version we implemented the functionality ourselves for the caching, check of licence, banner, etc. I see in the manual, section 6.3, it sets out the minimum requirements which seems much easier than before.

Regards
Dan

 
New Post
23/01/2013 20:25
 

Hi Dan,

Answers to your questions:

  1. Yes, LM 2.2 supports client modules integrated with both v1.x and v2.x of the Client API.
  2. You can use the new configurable outage tolerance feature while using your existing caching functionality, or you can use new, built-in cached licence validation methods
  3. Yes, the Client API now offers many more features. These include:
    1. methods for testing the status of the connection to the licence server
    2. enhanced module base classes that simply client integration 
    3. improved out-of-the-box, cached protection for integrated modules
    4. Version licensing support
See section 6 of the LM v2 User Manual for further information. The Sample Licence Master Client module provides an example of how to integrate a DNN module with Licence Master.


 


Dotcom Technical Support
 
New Post
24/01/2013 09:13
 

Hi Paul,

Thanks for the info.

Do you have more info on all the built-in methods as i couldn't see this in the documentation? We're trying to work out what we need to implement ourselves and what is now provided.

Thanks

Dan

 
New Post
24/01/2013 14:46
 

Hi Dan,

The LicensingUtility class that you are familiar with, but has new methods, is comprehensively documented on p18 of the manual. There is a new Client API dll Dotcom.Modules.LicenceMaster.Client.Dnn.dll that contains several classes for exclusive use of Dnn modules. These are two module control base classes, one for normal controls, the other for settings controls. They contain methods that provide a cached wrapper to the LicenceUtility,InstallationIsValid() method, using code identical to your code above, and other handy licence-related methods.

The easiest way to get more information is to install the sample module in a development environment and use Visual Studio intellisense and object browser to explore the libraries.

Hope that helps.

 


Dotcom Technical Support
 
Previous
 
Next
HomeHomeLicence MasterLicence MasterIntegrating Cli...Integrating Cli...LM v2 questionsLM v2 questions



 Search   Home