IAsyncImapClient.StartMonitoringAsync

IAsyncImapClient.StartMonitoringAsync method

Starts monitoring of message changes for specified folder.

public Task StartMonitoringAsync(ImapMonitoringEventHandler callback, 
    ImapMonitoringErrorEventHandler errorCallback, string folderName = "Inbox")
ParameterTypeDescription
callbackImapMonitoringEventHandlerThe callback function for monitoring operation.
errorCallbackImapMonitoringErrorEventHandlerThe callback function for monitoring error handling. Monitoring of specified folder is stopped when this callback is called. The callback also provides a state holder so folder monitoring could be resumed using ResumeMonitoringAsync method.
folderNameStringThe folder for monitoring operation.

See Also