title: What is the correct 'per request' Simple Injector lifestyle to use in a ServiceStack API application?
body: <p>I have a ServiceStack API application which uses Simple Injector as its IoC container. I need certain components to have a 'per web request' lifestyle.</p>
  
  <p>I looked up in the Simple Injector documentation <a href="https://simpleinjector.readthedocs.org/en/latest/lifetimes.html" rel="nofollow">here</a>, and found that it has not one, but two lifestyles corresponding to 'per web request':</p>
  
  <ol>
  <li>Per Web Request</li>
  <li>Per Web API Request</li>
  </ol>
  
  <p>This confused the hell out of me because I always thought all ASP.NET applications used the same basic pipeline, and that IoC containers implemented per web request by plugging in an HTTP module. Why would this be different for Web API applications?</p>
  
  <p>Can anyone shed some light about which is most appropriate for a ServiceStack API application?</p>