title: Autofac register IHttpContextAccessor
body: <p>I use autofac PropertiesAutowired approach (ASP.NET CORE).
  What I need is to get current user in class library project. How can I do it? I want something like this </p>
  
  <pre><code>public IHttpContextAccessor ContextAccessor{ get; set; }
  </code></pre>
  
  <p>and then to use it like </p>
  
  <pre><code>Context.HttpContext.User.Claims.First(i =&gt; i.Type == "NameIdentifier"
  </code></pre>
  
  <p>Is it possible to do or should I use something else for it?</p>