loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • IHttpContextAccessor
  • 離開本站
你即將離開本站

並前往https://cloud.tencent.com/developer/ask/65573

在ASP.NET Core中如何访问当前的HttpContext? - 问答 - 腾讯云

用户回答. HttpContext.Current 在ASP.NET Core中不再存在,但是 IHttpContextAccessor 可以在依赖关系中注入一个新的并用于检索当前 HttpContext :

確定! 回上一頁

查詢 「IHttpContextAccessor」的人也找了:

  1. IHttpContextAccessor
  2. httpcontext是什麼
  3. C# HttpContext
  4. NET Core get client IP
  5. Asp NET Core get request URL
  6. NET Core set Cookie
  7. .Net core inject ihttpcontextaccessor
  8. HttpActionContext .net Core

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿