Dotfuscator User's Guide
Expiration and Warning Reporting

The injected Shelf Life code can send messages to a PreEmptive Analytics Endpoint when the warning period is entered or expiration has occurred.  To enable this feature, turn on Send Shelf Life Messages in the Global Options section of the Settings tab. 

To detect Shelf Life expiration, place InsertShelfLife attributes on one or more methods in the application that are always executed. When Dotfuscator encounters an InsertShelfLife attribute during its processing, it adds code that performs expiration detection at runtime. If the current date is on or after than the embedded expiration date then a Shelf Life expiration message is sent to a PreEmptive Analytics Endpoint.

Dotfuscator also allows you to optionally specify a warning period that will occur prior to the application's expiration. If the current date is on or after than the embedded warning date then a Shelf Life warning message is sent to a PreEmptive Analytics Endpoint.

InsertShelfLife attributes are not required at runtime; therefore, Dotfuscator strips them from the output application.

An application can contain any number of InsertShelfLife attributes. In the event that an application has expired or is about to expire, multiple shelf life messages from the same application session will be sent with the same Shelf Life ID.

Do not put this attribute on the same method containing the Setup Attribute. Methods with this attribute must be executed after the method containing the Setup Attribute.
InsertShelfLife Attribute
Copy Code
[PreEmptive.Attributes.InsertShelfLife(
   ActivationKeyFile = "C:\\shelflife.slkey",
   ExpirationDate = "2009-11-05"
)]
public void DoStuff() { ... }
Note: A Shelf Life Activation Key (SLAK) must be purchased separately in order to use this functionality.

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com