小编mho*_*ger的帖子

.NET Core 配置 - System.Net connectionManagement/maxconnections?

我正在将控制台应用程序(REST 客户端应用程序)从 .NET 框架迁移到 .NET Core。

在我当前的(框架)版本中,我使用 app.config 文件来设置 System.Net 配置:

<system.net>
    <connectionManagement>
      <add address="*" maxconnection="65535"/>
    </connectionManagement>
</system.net>
Run Code Online (Sandbox Code Playgroud)

在 .NET Core 中,我必须使用 JSON 文件进行配置。没有使用新配置架构实现这些设置的文档。有谁知道这在新的 JSON 配置中看起来如何,或者在 Core 中实现它的正确方法?我是否需要专门构建一个指定的“System.Net.json”配置文件(与 AppSettings.json 分开)来执行此操作?

谢谢。

migration configuration system.net .net-core

5
推荐指数
2
解决办法
2975
查看次数

标签 统计

.net-core ×1

configuration ×1

migration ×1

system.net ×1