Table of Contents

Method Register

Namespace
MailFathom.Application.Synchronization
Assembly
MailFathom.Application.dll

Register(MailAccountId, CancellationToken)

Registers the wait an account is about to make, so a raise can end it.

public MailAccountRunSignal.Wait Register(MailAccountId account, CancellationToken stopping)

Parameters

account MailAccountId

The account about to wait.

stopping CancellationToken

Ends the wait for the other reason it ends — the host having stopped scheduling.

Returns

MailAccountRunSignal.Wait

The wait, whose token the caller waits under and which the caller disposes when the wait is over.

Remarks

A raise that arrived while nothing was registered is spent here, so the token comes back already cancelled and the wait ends without starting. That is what carries a change written during a run into the run after it rather than the one after that.