Author |
|
busbar Newbie
Joined: 26 September 2017 Location: Egypt
Online Status: Offline Posts: 7
|
Posted: 12 October 2017 at 2:14pm | IP Logged
|
|
|
Hi,
I am trying to use mailbee in accessing EWS in multithreading app, where 4 processes access a mailbox using EWS, when trying to use parallel.foreach everything is working fine yet I get error in mailbee
Exception: There is already an operation in progress.
digging more i found that this is an issue in mailbee, what could be the root cause and how to overcome it ?!
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 13 October 2017 at 5:01am | IP Logged
|
|
|
Hi,
Each thread must use its own instance of Ews class. It's not possible to run two methods for a single Ews instance in parallel.
Regards,
Alex
|
Back to Top |
|
|
busbar Newbie
Joined: 26 September 2017 Location: Egypt
Online Status: Offline Posts: 7
|
Posted: 13 October 2017 at 8:14am | IP Logged
|
|
|
Yup, this is the direction we went to, we created a list of EWS instances whre we pass them along with the foreach loop.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 13 October 2017 at 9:31am | IP Logged
|
|
|
So now it's all working, correct?
Regards,
Alex
|
Back to Top |
|
|