Interface IGuardrailSource
- Namespace
- IntentSharp.Guardrails
- Assembly
- IntentSharp.dll
Supplies the guardrail rule sets a client checks. Each check reads Current once and evaluates that one snapshot, so a change applies from the next check and never in the middle of one. Implement it to keep rule sets in a technology of your own; the IntentSharp.Guardrails package supplies one over rule files.
public interface IGuardrailSource
- Extension Methods
Remarks
A source that cannot produce a snapshot fails closed: when Current throws or returns null, every check that names a set is refused. A source keeps serving the last good version of a document that stops loading, rather than serving no rules for it.
Properties
- Current
The rule sets as they are now. Called once per check; it should return quickly.
Methods
- GetChangeToken()
A token that fires when Current changes.