title: How to pass IoC container to NancyFX? (OWIN, Unity)
body: <p>I have a Windows service where I use OWIN and NancyFX to host a website on top of it. On many places in my service, I use Unity to inject dependencies into classes, mostly services. However, if I use them in any Nancy modules, the dependencies get resolved twice because Nancy uses its own IoC container (TinyIoC).</p>
  
  <p>Fortunately, Nancy allows to override the default IoC container generation and use of an existing one by creating a nancy bootstrapper. But how do I pass my existing IUnityContainer to the bootstrapper?</p>
  
  <p>Basically, all I have to start OWIN is...</p>
  
  <pre><code>WebApp.Start&lt;MyOwinStarter&gt;(url);
  </code></pre>
  
  <p>How can I pass a Unity container to it to pass it further to the nancy bootstrapper?</p>