title: Carrying per-request context using the HttpRequestMessage.Properties
body: <p>In a Web API application, I use Castle Windsor to supply services configured with PerWebRequest lifetime and everything works fine on IIS.</p>
  
  <p>However, when I use the ASP.NET Web API Self Host (Beta) <a href="https://nuget.org/packages/AspNetWebApi.SelfHost" rel="noreferrer">package</a> I need to create a custom lifetime in order to scope those services per HTTP request.</p>
  
  <p>How can I carry per-request context using the HttpRequestMessage.Properties?</p>