Documentation
Table of Contents

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

name string

The intent's name.

cancellationToken CancellationToken

Cancels the call.

Returns

Task<bool>

Exceptions

ArgumentException

name is null, empty or white space.