In custom class in a class library. How to realize the Response Headers. The Add (); The effect of the
?
CodePudding user response:
Using dependency injection, constructor injection IHttpContextAccessorHe has a HttpContext inside
Remember to register services. AddHttpContextAccessor ()
CodePudding user response:
In addition to the injection can