Documentation
Table of Contents

Class TargetLimits

Namespace
IntentSharp.Targets
Assembly
IntentSharp.dll

The limits one execution runs under, resolved from the data.* settings: the file's value, else the code value, else the fail-closed value. A target honors them while it runs; the runtime also cancels an execution that outlasts Timeout and cuts the records to MaxResults, so a target that ignores them still cannot run without a limit.

public sealed class TargetLimits
Inheritance
object
TargetLimits
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

TargetLimits()

Creates limits that allow no writes, run for real and set no result or time limit; the runtime sets each from the resolved settings.

Properties

AllowWrites

True when the command may change data (data.allowWrites). The runtime never executes a write when it is false.

DryRun

True for a dry run (data.dryRun). The runtime does not call ExecuteAsync(TargetExecution, CancellationToken) for a dry run, so a target sees false.

MaxResults

The most records to return (data.maxResults); null when the limit was removed with unlimited. Stop reading past it and set Truncated.

Timeout

How long the execution may run (data.timeout); null when the limit was removed with unlimited. A technology that counts whole seconds rounds a shorter time up to one second, never down to "no limit".