exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I use C# to get/add calendar events and get/post e-m

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications
Author Message
Titan



Joined: 05 Aug 2007
Posts: 9

PostPosted: Tue Apr 17, 2007 10:52 pm    Post subject: How can I use C# to get/add calendar events and get/post e-m Reply with quote

I have a requirement to transfer calendar entries from Exchange Server 2003
to another system and back when they are entered by a user. I also need to
copy e-mails back and forth. I would like to use C# .NET if possible.

What library/SDK can I use for this that supports .NET? I have seen
conflicting articles concerning this and whether managed code is supported,
etc.

Archived from group: microsoft>public>exchange>applications
Back to top
View user's profile Send private message
Titan



Joined: 05 Aug 2007
Posts: 9

PostPosted: Wed Apr 18, 2007 10:48 am    Post subject: Re: How can I use C# to get/add calendar events and get/post Reply with quote

Henning,

I would like to capture this data in real-time. If this is not possible I
would then run a frequent script like every 5 minutes or so. Remember, the
updates need to go both ways. I need to be able to get/post e-mails and
get/enter calendar events. Ultimately it will be used to synchronize 2
separate e-mail/scheduling systems in real-time.
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Wed Apr 18, 2007 12:24 pm    Post subject: Re: How can I use C# to get/add calendar events and get/post Reply with quote

Hello,

do you want to catch changes in the Exchange server in realtime or do you
want to run a scheduled script?

Best regards,
Henning Krause

"Titan" wrote in message @microsoft.com...
>I have a requirement to transfer calendar entries from Exchange Server 2003
> to another system and back when they are entered by a user. I also need
> to
> copy e-mails back and forth. I would like to use C# .NET if possible.
>
> What library/SDK can I use for this that supports .NET? I have seen
> conflicting articles concerning this and whether managed code is
> supported,
> etc.
Back to top
View user's profile Send private message
Titan



Joined: 05 Aug 2007
Posts: 9

PostPosted: Thu Apr 19, 2007 10:58 am    Post subject: Re: How can I use C# to get/add calendar events and get/post Reply with quote

Is there a better place I should post this question? Someplace that I would
get a reply in a timely manner? I just want to know what Microsoft provides
to do what I need. Their online documentation gives me conflicting answers.
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Thu Apr 19, 2007 9:19 pm    Post subject: Re: How can I use C# to get/add calendar events and get/post Reply with quote

Hello,

to do this realtime in both ways, you will need two sorts of event handler,
namely one on both ends. I don't know if the other mail system allows this,
but Exchange has the concept of event sinks.

To get notifications on multiple mailboxes, you'll have to implement a
synchronous store-wide event sink (OnSyncSave, OnSyncDelete) and catch the
modification. The technique to use is ExOleDB here.. probably with CdoEx on
top.

But you must be careful when implementing it, as the event is synchronous to
Exchange, meaning that it blocks the Exchange server. So I would suggest you
just use thread for notification and process the the changes in another
thread or process.

See http://www.infinitec.de/articles/exchange/managedeventsinks.aspx for
more info on this.

Best regards,
Henning Krause


"Titan" wrote in message @microsoft.com...
>
> Henning,
>
> I would like to capture this data in real-time. If this is not possible I
> would then run a frequent script like every 5 minutes or so. Remember,
> the
> updates need to go both ways. I need to be able to get/post e-mails and
> get/enter calendar events. Ultimately it will be used to synchronize 2
> separate e-mail/scheduling systems in real-time.
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group