Provides functionality for uses count limited trial application

The following tables list the members exposed by UsageBomb.

Public Constructors

Name Description
Public method UsageBomb Constructor

Public Properties

Name Description
Public property BackTimeTolerance Sets and gets the maximum time interval (in seconds) that the bomb can tolerate when calculating IsHacked property. The default and recomended value is 3601 (1 hour + 1 second), to prevent IsHacked misfires when the time switches back from DST.
Public property CountUsageOncePerDay If true then usage will be counted only once per day
Public property IsExpired Gets and sets a value indicating whether the trial is expired or not
Public property IsHacked Returns 'true' when users attempts to hack the bomb by reverting system time and CountUsageOncePerDay is set to 'true' If IsHacked is true then IsExpired is also true.
Public property IsStarted Gets a value indicating whether the bomb is started or not. The bomb starts after first Update() call and can become non-started after Reset() call
Public property IsTrialActive Returns true if the current usage count is less than trial maximum.
Public property LastRun Returns the date of previous bomb run
Public property MaxUsage Gets maximum usage count
Public property StartDate Gets and sets first run date
Public property State Gets bomb's current state
Public property UsageCount Gets the count of bomb uses
Public property UsageLeft Gets the amount of uses left

Public Methods

Name Description
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Equals (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Public method Load Reads and evaluates bomb's records, but doesn't save them
Public method Reset Removes all bomb records and resets State property to NonStarted
Public method Save Saves bomb records
Public method ToString (inherited from Object)
Public method Update Reads, evaluates and saves bomb records

Protected Methods

Name Description
Family method Finalize (inherited from Object)
Family method MemberwiseClone (inherited from Object)

See Also