Autodiscovering exchange server and caching RRS feed

  • Question

  • I am working on a outlook plugin

    I am doing autodiscovery of exchange service with a user id as given in MSDN docs.

    The auto discovery is taking more than 10 seconds. So i decided to cache the server details once i get it.

    I was thinking what if the mailbox gets moved to different exchange server? So thought of catching the exception when the mailbox is not found and in that scenario retry auto discovery once. The issue is , i am not getting a exception if the mailbox is not found.

    GetUserAvailabilityResults freeBusyResults = service.GetUserAvailability(attendees,

    new TimeWindow(meetingStartDateTime, meetingEndDateTime), AvailabilityData.FreeBusy, myOptions); freeBusyResults.AttendeesAvailability.OverallResult

    In this only "freeBusyResults.AttendeesAvailability.OverallResult" has "Error".

    How to decide on when to run autodiscovery again?

    Thanks in advance.



    Monday, November 17, 2014 11:21 AM