You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
I don't think we ever really thought though it. I don't know why it was ever marked as IDisposable in the first place, we haven't found a use for it before now. @benaadams's attempted use of it highlights some of the potential issues, such as non-deterministic lifetime.
I'd recommend removing IDisposable rather than trying to call it.
HttpContext is IDisposable so should be disposed at the end of the request.
Would suggest
Func<IFeatureCollection, Task> application
change toFunc<IFeatureCollection, Task<IDisposable>> application
in IServerFactory.StartThe Server Factory should then return the HttpContext from the closure: https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNet.Hosting/Internal/HostingEngine.cs#L88 to allow it to be disposed at the end of the request.
The text was updated successfully, but these errors were encountered: