Constructor RuleCompileHandler
- Namespace
- IntentSharp.Guardrails
- Assembly
- IntentSharp.Guardrails.dll
RuleCompileHandler(IDocumentStore, RuleCompileOptions?, ILogger<RuleCompileHandler>?)
Creates the handler over the rule files store holds.
public RuleCompileHandler(IDocumentStore store, RuleCompileOptions? options = null, ILogger<RuleCompileHandler>? logger = null)
Parameters
storeIDocumentStoreThe store that holds the manifest, the rule files and their companions: the store of the client the handler is added to.
optionsRuleCompileOptionsThe compile intent, the role and the manifest; copied now. Null uses the defaults.
loggerILogger<RuleCompileHandler>Receives a line per compile and each compile left undone. Null logs to the client's change detection logger.
Exceptions
- ArgumentNullException
storeis null.- ArgumentException
The compile intent's name cannot name a document.