Method When
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
When(Func<HeldSpecialistContext, bool>)
Puts a fitting held specialist in use when predicate returns true for it, for example only when
it was held less than a day ago. It is called once for each fitting record an ensure finds, before anything is
requested. An exception it throws reaches the caller.
public static HeldSpecialistPolicy When(Func<HeldSpecialistContext, bool> predicate)
Parameters
predicateFunc<HeldSpecialistContext, bool>Receives the held record and the request being ensured.
Returns
Exceptions
- ArgumentNullException
predicateis null.