Skip to main content
Published
Jul 11, 2024
2y ago
Total Downloads
832.5K
832,539

Install

dotnet add package nacos-sdk-csharp.Extensions.Configuration --version 1.3.7-alpha20240711021022
ProductVersions
.NET
net5.0net6.0
.NET Standard
netstandard2.0

README

nacos-sdk-csharp.Extensions.Configuration

nacos-sdk-csharp.Extensions.Configuration provides integration with ASP.NET Core Configuration System.

builder.Host.UseNacosConfig(section: "NacosConfig");

// or

builder.Host.ConfigureAppConfiguration((c, b) =>
{
    var config = b.Build();

    // read configuration from config files
    // default is json
    // b.AddNacosV2Configuration(config.GetSection("NacosConfig"));
    b.AddNacosV2Configuration(config.GetSection("NacosConfig"));

    // specify ini or yaml
    b.AddNacosV2Configuration(config.GetSection("NacosConfig"), parser: Nacos.IniParser.IniConfigurationStringParser.Instance);
    b.AddNacosV2Configuration(config.GetSection("NacosConfig"), parser: Nacos.YamlParser.YamlConfigurationStringParser.Instance);
});

Links

Changes from Previous Version

No structural changes between v1.3.6 and v1.3.7-alpha20240711021022.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 18 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.