Method RetireAsync
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
RetireAsync(string, CancellationToken)
Retires the intent's specialist: tells the service, stops using it, and forgets the request, the offer, the fit report and the held record kept for it. The next ensure or run requests again. An intent this runtime has not handled, but whose specialist the store holds (for example from before a restart), is retired from the held record. Returns false when there was nothing to retire.
public Task<bool> RetireAsync(string name, CancellationToken cancellationToken = default)
Parameters
namestringThe intent's name.
cancellationTokenCancellationTokenCancels the call.
Returns
- Task<bool>
Exceptions
- ArgumentException
nameis null, empty or white space.