Method FindHeldAsync
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
FindHeldAsync(string, CancellationToken)
The held specialist whose name, as the service gave it, is specialistName (compared exactly);
the one held last when several intents hold specialists of that name; null when none is. A record whose service
gave no name is not found this way, and stays reachable by its intent through GetHeldAsync(string, CancellationToken).
public Task<HeldSpecialist?> FindHeldAsync(string specialistName, CancellationToken cancellationToken = default)
Parameters
specialistNamestringThe specialist's name.
cancellationTokenCancellationTokenCancels the call.
Returns
- Task<HeldSpecialist>
Exceptions
- ArgumentException
specialistNameis null or empty.