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
Top

Public Properties

  Name Description
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
Top

Public Methods

  Name Description
Public method Dispose  
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (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 Returns a String that represents the current Object. (inherited from Object)
Public method Update Reads, evaluates and saves bomb records
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also