Provides functionality for uses count limited trial application
The following tables list the members exposed by UsageBomb.
Public Constructors
Public Properties
| Name | Description | |
|---|---|---|
|
CountUsageOncePerDay | If true then usage will be counted only once per day |
|
IsExpired | Gets and sets a value indicating whether the trial is expired or not |
|
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. |
|
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 |
|
IsTrialActive | Returns true if the current usage count is less than trial maximum. |
|
LastRun | Returns the date of previous bomb run |
|
MaxUsage | Gets maximum usage count |
|
StartDate | Gets and sets first run date |
|
State | Gets bomb's current state |
|
UsageCount | Gets the count of bomb uses |
|
UsageLeft | Gets the amount of uses left |
Public Methods
| Name | Description | |
|---|---|---|
|
Dispose | |
|
Equals | Determines whether the specified |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
Load | Reads and evaluates bomb's records, but doesn't save them |
|
Reset | Removes all bomb records and resets State property to NonStarted |
|
Save | Saves bomb records |
|
ToString | Returns a |
|
Update | Reads, evaluates and saves bomb records |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |