Class TargetSettings
- Namespace
- IntentSharp.Targets
- Assembly
- IntentSharp.dll
The code layer of the data.* settings for one TargetRuntime: what a setting takes when no file
sets it. A file's value always wins (a rule set's settings: block or the settings document), and a setting
left null here falls back to the library default, or to its fail-closed value for a security setting: no writes, a
30-second time limit, at most 1000 results.
public sealed class TargetSettings
- Inheritance
-
objectTargetSettings
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Remarks
These values are a default for when the files say nothing, never a floor or a ceiling over what a file says. A limit is removed only on purpose: MaxResultsUnlimited, or InfiniteTimeSpan as Timeout. Zero or a negative value never means "no limit": the runtime refuses it when it is created.
Constructors
- TargetSettings()
Creates settings that set nothing, so the files and the library decide every value.
Properties
- AllowWrites
data.allowWrites: true lets a command change data. Null leaves it to the files, then to false.
- DryRun
data.dryRun: true plans and checks commands without running them. Null leaves it to the files, then to false.
- MaxResults
data.maxResults: the most results one command may return, at least 1. Null leaves it to the files, then to 1000.
- MaxResultsUnlimited
True removes the result limit (
data.maxResults: unlimited) where no file sets one; it cannot be combined with MaxResults.
- Timeout
data.timeout: how long one execution may run, greater than zero and at most about 49.7 days, or InfiniteTimeSpan to remove the limit. Null leaves it to the files, then to 30 seconds.