I have an extension method that takes in IHtmlHelper, like this :
public static HtmlString HelpContext(this IHtmlHelper helper)
{
return "";
}
This function is then called from a Razor page.
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?