Skip to content

Instantly share code, notes, and snippets.

@rarous
Created January 5, 2011 11:56
Show Gist options
  • Select an option

  • Save rarous/766231 to your computer and use it in GitHub Desktop.

Select an option

Save rarous/766231 to your computer and use it in GitHub Desktop.
registrace HttpContextu do Windsor Containeru
Register(
Component.
For<HttpRequestBase>().
LifeStyle.PerWebRequest.
UsingFactoryMethod(() => new HttpRequestWrapper(HttpContext.Current.Request)),
Component.
For<HttpContextBase>().
LifeStyle.PerWebRequest.
UsingFactoryMethod(() => new HttpContextWrapper(HttpContext.Current))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment