What are all the hooks on the OWIN Startup class? Information on these is scarce.
For example, one required hook on every Startup class is that it should have a Configuration
method. This information can be gathered from the Microsoft documentation.
class Startup
{
public void Configuration(IAppBuilder appBuilder)
{
...
}
}
What is the rationale behind not having an IOwinStartup
interface or OwinStartup
base class in the framework?
interface IOwinStartup
{
void Configuration(IAppBuilder appBuilder);
}
How do I perform cleanup for my OWIN-based application? Does OWIN detect a Dispose
method on the Startup class, similar to how it detects a Configuration
method?
After a lot of searching I found this related question: In self-hosted OWIN Web API, how to run code at shutdown? It's not clear how the peopled who answered that question arrived at the necessary information. Am I missing critical documentation or are these details of the OWIN Startup class as elusive as they seem?