Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在.NETCore中托管URL_C#_.net - Fatal编程技术网

C# 在.NETCore中托管URL

C# 在.NETCore中托管URL,c#,.net,C#,.net,我的.net核心应用程序是从hosting.json文件初始化的,该文件存储“server.url” 我需要从我的应用程序中了解这个“server.url”。如何获取这些数据?为什么不能使用AddJsonFile(“hosting.json”)将其加载到配置中(就像Kestrel一样)?谢谢!好主意:)解决了!:)

我的.net核心应用程序是从hosting.json文件初始化的,该文件存储“server.url”


我需要从我的应用程序中了解这个“server.url”。如何获取这些数据?

为什么不能使用
AddJsonFile(“hosting.json”)
将其加载到配置中(就像Kestrel一样)?谢谢!好主意:)解决了!:)