ImapRaiseEventsViaMessageLoop Property |
Namespace: MailBee.ImapMail
This property is only meaningful in WinForms applications where events and asynchronous methods are used, and the developer needs to block the message loop for some reason (usually, to wait for completion of an asynchronous method).
In this case, you should set this property to false and use Wait method to wait until asynchronous MailBee method is finished. See Wait method for more information.
The above also applies to synchronous methods if they are called on worker (non-UI) threads. If, however, the application does not use asynchronous methods of MailBee (and never calls its synchronous methods on non-UI threads), it should NOT attempt to set RaiseEventsViaMessageLoop to false or use Wait method.
Note |
---|
If you develop non-WinForms application (such as web or console application), you do not need to set this property or use Wait method regardless if the application uses worker threads or not. |