title: Simple Injector: how to inject HttpContext?
body: <p>I have started using Simple Injector as my DI container (mostly for performance reason: if somebody has suggestions, please let me know) but some of the classes I wrote use HttpContextBase as constructor parameter.
  I have resolved for now removing it from the constructor and creating a Property, something like this:</p>
  
  <pre><code>    public HttpContextBase HttpContext
      {
          get
          {
              if (null == _httpContext)
                  _httpContext = new HttpContextWrapper(System.Web.HttpContext.Current);
              return _httpContext;
          }
          set
          {
              _httpContext = value;
          }
      }
  </code></pre>
  
  <p>but I don't like this solution... any advices?</p>