Constructor MailboxFolderSetNotificationSessionResult
- Namespace
- MailFathom.Application.Synchronization.Sessions
- Assembly
- MailFathom.Application.dll
MailboxFolderSetNotificationSessionResult(MailSynchronizationMode, IMailboxFolderSetNotificationSession?)
Reports whether one session can watch a set of folders, and the session to watch them with.
public MailboxFolderSetNotificationSessionResult(MailSynchronizationMode EffectiveMode, IMailboxFolderSetNotificationSession? Session)
Parameters
EffectiveModeMailSynchronizationModeWhat the folders actually got: Push when a session was opened, and Polling when the server advertises no mechanism for watching a set.
SessionIMailboxFolderSetNotificationSessionThe open session, which is present exactly when
EffectiveModeis Push and is the caller's to dispose.
Remarks
A declined subscription says nothing about whether one folder at a time can be watched, so a caller that receives Polling here still has the single-folder session to try.