Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EWS Managed API and Multithreading

59 views
Skip to first unread message

Devesh Sarwate

unread,
Jul 6, 2009, 10:09:18 PM7/6/09
to

Hi All,
I could not find any details about thready safety of EWS Managed API objects
in the MSDN docs. More specifically I am trying to find if the
"ExchangeService" object is Thread safe?

Currently I am looking at calling "FindItems" and "LoadPropertiesForItems"
with different set of messages from two different threads on a
ExchangeService object.

Thanks
Devesh


Henning Krause [MVP - Exchange]

unread,
Jul 8, 2009, 2:25:40 PM7/8/09
to

Hi,

the documentation does not state anything about thread-safety. But why do
you want to use only one instance? The object itself is not very resource
intensive. And the WebService stuff does use the ServicePointManager system
under the hood - this allows different calls to the same server to be pooled
on the same TCP connection. So you get the performance boost even when you
are using multiple ExchangeService instances.

Kind regards,
Henning Krause

"Devesh Sarwate" <Devesh....@gmail.com> wrote in message
news:#SWFwfq$JHA....@TK2MSFTNGP05.phx.gbl...

0 new messages