title: Method injection in extension method
body: <p>I have an extension method that takes in IHtmlHelper, like this :</p>
  <pre><code>public static HtmlString HelpContext(this IHtmlHelper helper)
  {
      return &quot;&quot;;
  }
  </code></pre>
  <p>This function is then called from a Razor page.</p>
  <p>I have my settings loaded in my startup, and it's ready to access via dependency injection. How would I go about this, without creating a static settings class? Is it possible to do method injection here, without having to inject the settings from the page on every call?</p>