我想在 .net 核心应用程序中获取主机名/地址以在 ConfigureServices 中动态创建连接字符串。我尝试了很多方法。如何在 startup.cs 文件中获取请求详细信息
.net core asp.net-core
.net ×1
asp.net-core ×1
core ×1