title: Accessing the IHostingEnvironment in ConfigureServices method
body: <p>I need to check in <code>ConfigureServices</code> method whether the current hosting environment name is 'Development'. </p>
  
  <p>So using <code>IHostingEnvironment.IsDevelopment()</code> method may be ok for me, but unlike in Configure method, I do not have <code>IHostingEnvironment env</code>.</p>