If you're not in a controller, you can still access the HttpContext by injecting IHttpContextAccessor . Let's go ahead and add sessions to ...
確定! 回上一頁