title: Why MVC handler didn't execute after IAppBuilder.Run method invoked?
body: <p>In MVC5, which integrated with OWIN(Katana) via Microsoft.Owin.Host.SystemWeb.dll, why MVC handler didn't execute after <a href="https://msdn.microsoft.com/en-us/library/owin.appbuilderuseextensions.run(v=vs.113).aspx#M:Owin.AppBuilderUseExtensions.Run(Owin.IAppBuilder,System.Func%7BMicrosoft.Owin.IOwinContext,System.Threading.Tasks.Task%7D)" rel="nofollow">IAppBuilder.Run</a> method invoked, and did execute after <a href="https://msdn.microsoft.com/en-us/library/owin.appbuilderuseextensions.use(v=vs.113).aspx#M:Owin.AppBuilderUseExtensions.Use(Owin.IAppBuilder,System.Func%7BMicrosoft.Owin.IOwinContext,System.Func%7BSystem.Threading.Tasks.Task%7D,System.Threading.Tasks.Task%7D)" rel="nofollow">IAppBuilder.Use</a> method invoked?</p>
  
  <p>Here are my implementations:</p>
  
  <p>Case 1:</p>
  
  <pre><code>   public partial class Startup
     {
        public void Configuration(IAppBuilder app)
        {
          app.Use( async (context, next) =&gt;
          {
              await context.Response.WriteAsync(@"&lt;h1&gt;Before MVC&lt;/h1&gt;");
  
              await next.Invoke();  //What 's the "next" object now?
  
              await context.Response.WriteAsync(@"&lt;h1&gt;After MVC&lt;/h1&gt;");
          });
  
        }
     } 
  </code></pre>
  
  <p>Case 2:</p>
  
  <pre><code>    public partial class Startup
      {
        public void Configuration(IAppBuilder app)
        {
           app.Run( async context =&gt; 
           {
               await context.Response.WriteAsync(@"&lt;h1&gt;MVC has not been invoked.&lt;/h1&gt;");
           });
  
        }
      }
  </code></pre>
  
  <p>In this case, as i know, OWIN component run as HttpModule(OwinHttpModule), which registered in Asp.NET pipeline.
  So why Execution of IAppBuilder.Run method led to skipping of MVC module?</p>