Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.MS_OXCMAPIHTTPAdapter.GetEndpointUrl C# (CSharp) Method

GetEndpointUrl() private method

Get the mailbox server endpoint URI and the address book server endpoint URI by Autodiscover.
private GetEndpointUrl ( ) : void
return void
        private void GetEndpointUrl()
        {
            string originalServerName = Common.GetConfigurationPropertyValue("SutComputerName", this.Site);
            string transportSequence = Common.GetConfigurationPropertyValue("TransportSeq", this.Site);
            string requestURL = Common.GetConfigurationPropertyValue("AutoDiscoverUrlFormat", this.Site);
            requestURL = Regex.Replace(requestURL, @"\[ServerName\]", originalServerName, RegexOptions.IgnoreCase);

            AutoDiscoverProperties autoDiscoverProperties = AutoDiscover.GetAutoDiscoverProperties(this.Site, originalServerName, this.userName, this.domainName, requestURL, transportSequence.ToLower());
            this.mailStoreUrl = autoDiscoverProperties.PrivateMailStoreUrl;
            this.addressBookUrl = autoDiscoverProperties.AddressBookUrl;
        }
MS_OXCMAPIHTTPAdapter