0
A
回答
0
我用它找到一個ASP.NET核心API控制器的請求路徑:
var httpFeatures = HttpContext.Features.Get<IHttpRequestFeature>();
if (httpFeatures == null)
{
string path = httpFeatures.Path;
}
返回路徑 「/ API /客戶端/ IPADDRESS/islocal」
相關問題
- 1. 如何在ASP.NET Core 1.0中實現批量插入?
- 2. 如何在ASP.NET中實現
- 3. 在ASP.NET Core中設置實體框架
- 4. 如何在ASP.NET Core MVC
- 5. .Net Core如何實現SQLAdapter ./DataTable函數
- 6. 如何在asp.net中實現Google方向
- 7. 如何在asp.net中實現錄音機
- 8. 如何在ASP.Net中實現CSRF衛士
- 9. 如何在jquery中實現fadeout asp.net
- 10. 如何在ASP.NET中實現PayPal Express Checkout?
- 11. 如何在asp.net MVC中實現區域?
- 12. 如何在ASP.NET中實現WCF REST
- 13. 如何在ASP.Net中實現URL重寫?
- 14. 如何在ASP.NET中實現HTTP 1.0/1.1
- 15. 如何在asp.net中實現JQgrid?
- 16. 如何在ASP.NET中實現OWIN Ilogger?
- 17. 如何在ASP.NET MVC中實現「預覽」?
- 18. 如何在ASP.NET MVC中實現角色?
- 19. 如何在ASP.NET中實現NoBot/AntiBot
- 20. 如何在ASP.NET項目中實現HTTPS?
- 21. 如何在ASP.Net C#中實現FCM?
- 22. 如何在asp.net中實現surveygizmo api MVC3
- 23. 如何在ASP.NET中實現GZip壓縮?
- 24. 如何在Asp.net/Asp.net mvc中實現實時Web體驗?
- 25. 如何在ASP.NET Core中下載文件
- 26. 如何在ASP.NET Core中創建MVC5 MvcHtmlString
- 27. 如何在ASP.NET Core中使用DbConfiguration類
- 28. 如何在ASP.NET Core MVC中添加DefinitelyTyped
- 29. 如何在Entity Framework Core中實現環境事務?
- 30. 如何在.NET Core控制檯應用程序中實現MVVM?