↧
Answer by grzegorz_p for asp.net core self hosted app leaks on webhost respawn
Okay, I've shown the wrong trace for the problem described. The context was not properly released nevertheless. I found a solution: IApplicationLifecycle.StopApplication as described here ->...
View ArticleAnswer by Cheng Chen for asp.net core self hosted app leaks on webhost respawn
I am seeing n instances of controller where n is number of http requests to the controller That's the expected behavior. Controllers are created for each request by default. From your snapshot I don't...
View Articleasp.net core self hosted app leaks on webhost respawn
I have a self-hosted asp.net core app that needs to occassionally respawn its WebHost with a new context. App registers a shared resource as a singleton in asp.net DI container....
View Article