title: Can i create OwinMiddleware per request instead creating a global object
body: <p>I'm working on the webapi project &amp; now we are migrating to Owin/Katana hosting. I have few doubts regarding. </p>
  
  <p>Quest ) Can i create OwinMiddleware per request instead creating a global object?</p>
  
  <p>I'm able to create owinMiddleware but not able to create them per request. I wanted to create them per request so that i can insert a new object in owinMiddleware as dependency. I'm already using unity in webapi so wanted some solution aligned with unity. </p>
  
  <p>I found few links :-</p>
  
  <p><a href="http://alexmg.com/owin-support-for-the-web-api-2-and-mvc-5-integrations-in-autofac/" rel="nofollow">http://alexmg.com/owin-support-for-the-web-api-2-and-mvc-5-integrations-in-autofac/</a></p>
  
  <p><a href="http://www.tugberkugurlu.com/archive/owin-dependencies--an-ioc-container-adapter-into-owin-pipeline" rel="nofollow">http://www.tugberkugurlu.com/archive/owin-dependencies--an-ioc-container-adapter-into-owin-pipeline</a></p>
  
  <p>but not able to adjust a new IoC with old unity. Can anybody suggest any solution </p>