Disposing resources at the end of ASP.NET Core request

added by DotNetKicks
3/20/2017 8:49:47 AM

2 Kicks, 331 Views

Today, let's have a look at dealing with disposable objects in ASP.NET Core. Imagine you have an object that you'd like to reuse throughout the duration of the HTTP request, but at the end, it must clean up some of its open resources or handles. This is a common requirement for i.e.


0 comments