Exemple #1
0
            public void SetAccount(string account)
            {
                if (account == null || account.Length == 0)
                {
                    account = "empty";
                }

                this.Url = OriginalUri.AbsoluteUri;
                DataCenterUrls urls          = getDataCenterUrls(account).dataCenterUrls;
                Uri            dataCenterUri = new Uri(urls.webservicesDomain + OriginalUri.PathAndQuery);

                this.Url = dataCenterUri.ToString();
            }
Exemple #2
0
 public DataCenterAwareNetSuiteService(string account, bool doNotSetUrl)
     : base()
 {
     OriginalUri = new System.Uri(this.Url);
     if (account == null || account.Length == 0)
     {
         account = "empty";
     }
     if (!doNotSetUrl)
     {
         //var temp = getDataCenterUrls(account);
         DataCenterUrls urls          = getDataCenterUrls(account).dataCenterUrls;
         Uri            dataCenterUri = new Uri(urls.webservicesDomain + OriginalUri.PathAndQuery);
         this.Url = dataCenterUri.ToString();
     }
 }