title: How to get webrole instance's domain name using site manager?
body: <p>I'm using site manager to get the iis log's file path in each instance, and upload them to the blob storage.</p>
  
  <p>Here problem comes, in my project, there are two version of the services, the debug one and the online one, and I can only upload the iis log from service instance. To manage the project, I need to check the domain name to judgment the instance is in the online service, so that I can update in both debug and online services using the same code.</p>
  
  <p>By now, here is my code:</p>
  
  <pre><code>SiteManager sm = new SiteManager();
  foreach (var site in sm.Sites)
  {
      string[] logDir = GetIISLogDir(site);
      foreach (string filePath in logDir)
      {
          UploadLogToStorage(filePath);
      }
  }
  </code></pre>
  
  <p>I think I need to obtain the domain name from variable site, and decide whether to upload the log.</p>