title: Adding helper class which uses "IHttpContextAccessor" should be Singlton or Scoped
body: <p>I am creating a class which reads the header using <code>IHttpContextAccessor</code> and reads the values from header.<br/>
  Like &quot;.net framework&quot; we can access context in static manner <code>HttpContext.Current...</code> so shall I inject my class as Singlton or Scoped as the context or context.header value is going to change in each request.</p>
  <p>Below is what I am trying</p>
  <pre><code>public class RequestHeaderHelper
  {
      private readonly IHttpContextAccessor httpContext;
  
      public RequestHeaderHelper(IHttpContextAccessor httpContext)
      {
          this.httpContext = httpContext;
      } 
      public string BrowserIP
      {
          get
          {
              if (httpContext.HttpContext.Request.Headers.ContainsKey(&quot;X-Client-IP&quot;))
                  return httpContext.HttpContext.Request.Headers.ContainsKey(&quot;X-Client-IP&quot;).ToString();
              else
                  return string.Empty;
          }
          private set { }
      }
      ....
  }
  </code></pre>
  <h2>Edit 1</h2>
  <p>Further I am going to use this class inside my other classes like logger. I have created action filter and exception logger where I am going to use this.</p>
  <p>I am also using <code>wcf client</code> class to call the service. I am using logging there as well using <code>beforesend and aftersend</code>. I am adding endpoint behavior.</p>
  <p>I want to use <code>wcf client</code> as singlton but use the above class in logger.</p>