title: Reload routes on runtime in dotnetcore
body: <p>I have a custom route that reads URLs from a no-SQL database (MongoDB) and add them to the route pipeline at moment that the application starts, which is "pretty standard"</p>
  
  <p>something like this (in my startup.cs file):</p>
  
  <pre><code>app.UseMvc(routes =&gt;
  {
      routes.MapRoute(
          "default",
          "{controller=Home}/{action=Index}/{id?}");
      routes.Routes.Add(
          new LandingPageRouter(routes, webrequest, memoryCache, Configuration)); 
      // this custom routes adds URLs from database
  }
  </code></pre>
  
  <p>the issue is that if I add another route to the database after the application has started I basically get a 404 since the routing system isn't aware of this new route, I think that what I need is add the missing routes at runtime or (less convenient) restart the application pool from another web application (which has been developed on framework 4.5 and obviously it runs on a different pool)</p>
  
  <p>Any other thoughts on this?
  thanks.</p>