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
decisionGuardrailDecisionThe decision of the check for this operation.
Exceptions
- ArgumentNullException
decisionis null.- GuardrailPolicyException
The decision does not allow the operation.