title: Using HttpContext in controller constructor
body: <p>I was trying to set a property in the constructor af a controller like this:</p>
  
  <pre><code>public ApplicationUserManager UserManager { get; private set; }
  public AccountController()
      {
          UserManager = HttpContext.GetOwinContext().Get&lt;ApplicationUserManager&gt;("");
      }
  </code></pre>
  
  <p>But as explained here:</p>
  
  <p><a href="https://stackoverflow.com/a/3432733/1204249">https://stackoverflow.com/a/3432733/1204249</a></p>
  
  <p>The HttpContext is not available in the constructor.</p>
  
  <p>So how can I set the property so that I can access it in every Actions of the Controller?</p>