Method RecallAsync
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
RecallAsync(HeldSpecialist, CancellationToken)
Hands back the offer of a specialist the runtime held (HeldSpecialist) whose offer brought a provider of its own, so it can be put in use again without a new request or a wait, for example after a restart; or null when the service cannot recall it. The runtime calls it only when UseHeld allows it, and on null, or an exception, waits on the recorded ticket as it would without the record. The default answers null. An offer that names a configured provider is put in use from the record and never comes here.
Task<SpecialistOffer?> RecallAsync(HeldSpecialist held, CancellationToken cancellationToken)
Parameters
heldHeldSpecialistThe held record: the specialist's name as the service gave it, the ticket, and the definition returned.
cancellationTokenCancellationTokenCancels the call.
Returns
- Task<SpecialistOffer>
The offer, which the runtime judges again unless it is the same offer the verdict was made for; or null.