Method HandleAsync
- Namespace
- IntentSharp.Guardrails
- Assembly
- IntentSharp.Guardrails.dll
HandleAsync(EnvironmentChange, EnvironmentChangeContext, CancellationToken)
Compiles the rule sets change concerns; see the class remarks.
public ValueTask HandleAsync(EnvironmentChange change, EnvironmentChangeContext context, CancellationToken ct = default)
Parameters
changeEnvironmentChangeThe change the client found.
contextEnvironmentChangeContextThe client, the target's current description, the recompile cap and the reporting members.
ctCancellationTokenCancelled when
environment.handlerTimeoutis up; a compile not finished by then leaves the previous version running.
Returns
- ValueTask
Exceptions
- ArgumentNullException
changeorcontextis null.- OperationCanceledException
ctwas cancelled.