Documentation
Table of Contents

Method ReportPending

Namespace
IntentSharp.ChangeDetection
Assembly
IntentSharp.dll

ReportPending(string, string?)

Reports a rule set the handler could not bring up to date: its recompile failed, was capped, or was held by an edit writer, so the version that ran before keeps running. Each set counts once towards environment.pendingRecompile, which a rule file can use to refuse operations until the rules catch up: the set stays pending, and every operation of a TargetRuntime that names it is checked at the Environment checkpoint with it counted (only the operation that found the change when the setting environment.pendingHold is changedOperation), until a recompile of it is taken (TryTakeRecompileAsync(string, string, CancellationToken)) and not reported pending, or a later change of its target is handled without it being reported. It is pending for the target its recompile was asked for, else the changed target, else the target its rule file names, else every target. While it is pending, a later operation over that target raises the target's description again by default, so the handlers can try once more within environment.maxRecompilesPerHour; the setting environment.recompileRetry changes when it is tried.

public void ReportPending(string set, string? reason = null)

Parameters

set string

The rule set.

reason string

Why, in a few words, such as the compile failed; null for none. Never put a value read from a target in it.

Exceptions

ArgumentNullException

set is null.

ArgumentException

set is empty.