title: How does reloadOnChange of Microsoft.Extensions.Configuration work for appsettings.json
body: <p>In two projects (a .NET Core Web API and a .NET Core WindowsService) I am using appsettings.json for the configuration. </p>
  
  <pre><code> var configuration = new ConfigurationBuilder()
             .SetBasePath(System.IO.Directory.GetCurrentDirectory())
             .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
             .AddEnvironmentVariables()
             .Build();
  </code></pre>
  
  <p>In both I have the reloadOnChange set to true and using it as injected <code>IOptions</code> via dependency injection. Within the web api into the controller classes and within the service into the classes that use the settings.</p>
  
  <p>Unfortunatly I experience that the values do not change when the appsettings.json changes.</p>
  
  <p>On the web api I created a controller to just return a string value from the config and this stays the same as on startup.</p>
  
  <p>So my questions:</p>
  
  <ol>
  <li>Anyone knows if that should work out of the box (at least in the web api)?</li>
  <li>Anything I have to do that it works?</li>
  </ol>