Documentation
Table of Contents

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

store IDocumentStore

The store that holds the manifest, the rule files and their companions: the store of the client the handler is added to.

options RuleCompileOptions

The compile intent, the role and the manifest; copied now. Null uses the defaults.

logger ILogger<RuleCompileHandler>

Receives a line per compile and each compile left undone. Null logs to the client's change detection logger.

Exceptions

ArgumentNullException

store is null.

ArgumentException

The compile intent's name cannot name a document.