Provides functionality for uses count limited trial application
The following tables list the members exposed by UsageBomb.
Public Constructors
Public Properties
| Name | Description | |
|---|---|---|
|
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. |
|
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 | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
|
Equals | (inherited from Object) |
|
GetHashCode | (inherited from Object) |
|
GetType | (inherited from Object) |
|
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 | (inherited from Object) |
|
Update | Reads, evaluates and saves bomb records |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | (inherited from Object) |
|
MemberwiseClone | (inherited from Object) |