Documentation
Table of Contents

Method Ensure

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

Ensure(GuardrailDecision)

Returns when decision allows the operation, and throws otherwise. A decision allows the operation only when Allowed is true and it has no refusal and no violation.

public static void Ensure(GuardrailDecision decision)

Parameters

decision GuardrailDecision

The decision of the check for this operation.

Exceptions

ArgumentNullException

decision is null.

GuardrailPolicyException

The decision does not allow the operation.