Method RecordAsync
- Namespace
- MailFathom.Infrastructure.Persistence.Answering
- Assembly
- MailFathom.Infrastructure.dll
RecordAsync(MailAnsweringRunObservation, CancellationToken)
Appends the entries one finished run owes, for the accounts whose record is on.
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "The run is over and the answer has already been produced; a record that could fail the question which produced it would be worse than a reported gap in the history.")]
public Task RecordAsync(MailAnsweringRunObservation observation, CancellationToken cancellationToken)
Parameters
observationMailAnsweringRunObservationWhat the run did, as it was observed from beginning to end.
cancellationTokenCancellationTokenCancels the durable write.
Returns
- Task
A task that completes once the entries are durable, were refused, or were not owed at all.