I am writing a Windows forms app to read a mailbox on an Exchange 2013 server. This code connects, and I can read the emails, but it can take two minutes or more to execute the AutodiscoverUrl method.
exchange = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
exchange.Credentials = new WebCredentials("USERNAME", "PASSWORD", "DOMAIN");
exchange.AutodiscoverUrl("USERNAME@DOMAIN", RedirectionUrlValidationCallback);
This is all happening on our internal corporate network. I'm at a big company with a couple thousand servers in our data center, and I'm wondering if the AutodiscoverUrl is looping through all our servers until it finds our Exchange server? I know the name of the Exchange server; is there a way to just specify it and drive on?