OWIN Middleware in the IIS integrated pipeline | Microsoft …

How OWIN Middleware Executes in the IIS Integrated Pipeline. For OWIN console applications, the application pipeline built using the startup configuration is set by the order the components are added using the IAppBuilder.Use method. That is, the OWIN pipeline in the Katana runtime will process OMCs in the order they were registered using IAppBuilder.Use.

https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline