title: How to get the Development/Staging/production Hosting Environment in ConfigureServices
body: <p>How do I get the Development/Staging/production Hosting Environment in the <code>ConfigureServices</code> method in Startup?</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      // Which environment are we running under?
  }
  </code></pre>
  
  <p>The <code>ConfigureServices</code> method only takes a single <code>IServiceCollection</code> parameter.</p>