Problem Statement
The documentation on OWIN integration doesn't include information on how host.OnAppDisposing is where the app shutdown cleanup happens. This can be confusing to people trying to integrate with other ASP.NET technologies (autofac/Autofac.WebApi#71). (Note there isn't anything Autofac currently specifically does to register for app disposal in the ASP.NET / OWIN pipelines. The DisposeOnAppDisposing method in Autofac.Owin is for self-hosting.)
Problem Statement
The documentation on OWIN integration doesn't include information on how
host.OnAppDisposingis where the app shutdown cleanup happens. This can be confusing to people trying to integrate with other ASP.NET technologies (autofac/Autofac.WebApi#71). (Note there isn't anything Autofac currently specifically does to register for app disposal in the ASP.NET / OWIN pipelines. TheDisposeOnAppDisposingmethod in Autofac.Owin is for self-hosting.)