Skip to content

Commit 7664d2d

Browse files
authored
docs: update sample code #284 (#285)
1 parent 290cc6d commit 7664d2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ https://nacos-sdk-csharp.readthedocs.io/en/latest/
4242
// after v1.3.3, we can use UseNacosConfig to simplify
4343
public static IHostBuilder CreateHostBuilder(string[] args) =>
4444
Host.CreateDefaultBuilder(args)
45-
.UseNacosConfig(section: "NacosConfig", parser: null logAction: null)
45+
.UseNacosConfig(section: "NacosConfig", parser: null, logAction: null)
4646
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.YamlParser.YamlConfigurationStringParser.Instance logAction: null)
4747
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.IniParser.IniConfigurationStringParser.Instance logAction: null)
4848
.ConfigureWebHostDefaults(webBuilder =>

README.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ https://nacos-sdk-csharp.readthedocs.io/en/latest/
4444
// v1.3.3 版本之后, 可以用 UseNacosConfig 来简化
4545
public static IHostBuilder CreateHostBuilder(string[] args) =>
4646
Host.CreateDefaultBuilder(args)
47-
.UseNacosConfig(section: "NacosConfig", parser: null logAction: null)
47+
.UseNacosConfig(section: "NacosConfig", parser: null, logAction: null)
4848
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.YamlParser.YamlConfigurationStringParser.Instance logAction: null)
4949
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.IniParser.IniConfigurationStringParser.Instance logAction: null)
5050
.ConfigureWebHostDefaults(webBuilder =>

0 commit comments

Comments
 (0)