SmtpJobsRunning Property |
Namespace: MailBee.SmtpMail
Jobs processing starts when the application calls such methods as SendJobs, BeginSendJobs(AsyncCallback, Object), SendMailMerge(String, EmailAddressCollection, DataTable), or SubmitJobsToPickupFolder(String, Boolean).
Jobs are processed in the following order:
By default, multi-thread mode is off (MaxThreadCount is 1), so that only 1 job is processed per moment and number of items in JobsRunning never exceeds 1.
Note |
---|
The application can monitor JobsRunning collection only while any method which processes jobs is running. Once job processing finishes, JobsRunning will always be empty. To monitor JobsRunning and other job collections directly during job processing (i.e. not waiting until job processing completes), subscribe to Smtp class events, or start jobs processing with BeginSendJobs(AsyncCallback, Object) method, or both. To synchronize access to these collections in multi-thread environment, use JobsSyncRoot property. |