Documentation
Table of Contents

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

specialistName string

The specialist's name.

cancellationToken CancellationToken

Cancels the call.

Returns

Task<HeldSpecialist>

Exceptions

ArgumentException

specialistName is null or empty.