RickStrahl / Westwind.AspnetCore.LiveReload

ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
Other
473 stars 42 forks source link

Core 2.1 bug: applicationLifetime not set #41

Closed TMox closed 4 years ago

TMox commented 4 years ago

Hey @RickStrahl, thanks for LiveReload! I'm using it on an old Core 2.1 app (my host doesn't support 3.x!!), and I found an oversight in your code. It's a one-line change, and if nobody has told you about it, it's probably insignificant, but if you want to fix it, or have me fix it, just add applicationLifetime = lifeTime; in LiveReloadMiddleware.cs line 45 (in the NETCORE2 case). Thanks.

RickStrahl commented 4 years ago

Thanks. Fixed for next updated.