cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
yogeshagrawal
Level 2

Trial license

Jump to solution

Hi, Using  dotnet toolkit V2020.12.0. I need to list all the available license whether valid/invalid/expired , so user get complete view of all licenses.

I am able retrieve other details except the expired trial license information.

LicenseManager.GetFeatureCollection(LicenseSourceOption.Trials) return empty collection.

Can you suggest a way to get expired trial license information.

0 Kudos
(2) Solutions
dipujoseph
Level 3

Hi,

Please use the following variant of this API (sample code shown below).

 

licensing.LicenseManager.GetFeatureCollection(LicenseSourceOption.Trials, true);

 

The above-mentioned call depicts use of the diagnostic version of the GetFeatureCollection method, which you indicate by passing true to the diagnostic argument. FlexNet Embedded supports the diagnostic functionality for buffer, trusted-storage, trial, and certificate license sources.

From API documentationFrom API documentation

 

 

View solution in original post

The difference between this and the non-diagnostic version is that a diagnostic source
loads all features, even those that fail validation. While the diagnostic functionality provides additional information, it can produce overhead not acceptable in a production environment. For example, it will load all expired features into the license source, which consumes memory resources and slows the search for valid licenses at the time of the acquisition request.

 

(Source: FlexNet Embedded Client .NET XT SDK User Guide)

View solution in original post

(2) Replies
dipujoseph
Level 3

Hi,

Please use the following variant of this API (sample code shown below).

 

licensing.LicenseManager.GetFeatureCollection(LicenseSourceOption.Trials, true);

 

The above-mentioned call depicts use of the diagnostic version of the GetFeatureCollection method, which you indicate by passing true to the diagnostic argument. FlexNet Embedded supports the diagnostic functionality for buffer, trusted-storage, trial, and certificate license sources.

From API documentationFrom API documentation

 

 

The difference between this and the non-diagnostic version is that a diagnostic source
loads all features, even those that fail validation. While the diagnostic functionality provides additional information, it can produce overhead not acceptable in a production environment. For example, it will load all expired features into the license source, which consumes memory resources and slows the search for valid licenses at the time of the acquisition request.

 

(Source: FlexNet Embedded Client .NET XT SDK User Guide)