0

Is it possible Extended existing ASP.NET CORE Web API without recompilation.

e.g existing API works on "mysite.com/API/Controler1/Method1" want to add new controller "mysite.com/API/Controler1/Method2", without recompilation and stooping existing server.

whole idea is, not touching things that's working.

Should I split project in to two project ? (In that case how to deal with routing ?)

Tasos K.
  • 7,979
  • 7
  • 39
  • 63
  • This depends on a lot of things that you haven't told us, like how much of the application runs on the server. – Robert Harvey Feb 17 '19 at 14:52
  • Related: https://stackoverflow.com/q/38298312 – Robert Harvey Feb 17 '19 at 14:54
  • Related: https://stackoverflow.com/q/36121999 – Robert Harvey Feb 17 '19 at 14:56
  • Every time when I Update my server application (webAPI) with new functionality I have to stop everlasting recompile it and redeploy. It would be nice to have ability to deploy new controlers for existing asp.net application without recompiling it. – Irakli Lomidze Feb 17 '19 at 15:05
  • That would be a neat trick. C# is a compiled language. The only way to do it would be to dynamically compile some code for each web request. There are ways to do that, but it would take some time to work out a good solution, and there are performance penalties. – Robert Harvey Feb 17 '19 at 15:24
  • Have a look here for some ideas: https://msdn.microsoft.com/en-us/magazine/mt808499.aspx – Robert Harvey Feb 17 '19 at 15:35

0 Answers0