Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET EWS Component

 AfterLogic Forum : MailBee.NET EWS Component
Subject Topic: mailbee EWS multithreading Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
busbar
Newbie
Newbie


Joined: 26 September 2017
Location: Egypt
Online Status: Offline
Posts: 7
Posted: 12 October 2017 at 2:14pm | IP Logged Quote busbar

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 View busbar's Profile Search for other posts by busbar
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 October 2017 at 5:01am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
busbar
Newbie
Newbie


Joined: 26 September 2017
Location: Egypt
Online Status: Offline
Posts: 7
Posted: 13 October 2017 at 8:14am | IP Logged Quote busbar

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 View busbar's Profile Search for other posts by busbar
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 October 2017 at 9:31am | IP Logged Quote Alex

So now it's all working, correct?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide