Method DeclareAsync
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
DeclareAsync(PresentationCitation, CancellationToken)
Declares a source the answer's blocks may name, once however often it is declared.
public Task<bool> DeclareAsync(PresentationCitation citation, CancellationToken cancellationToken)
Parameters
citationPresentationCitationThe source, under the name blocks refer to it by.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when the source is declared, now or earlier; false when the answer is no longer being composed.
Exceptions
- ArgumentNullException
Thrown when
citationis null.