Skip to main content
net5.0net6.0.NETStandard2.0

nacos csharp sdk

Published
Aug 20, 2024
2y ago
Total Downloads
1.3M
1,277,010

Install

dotnet add package nacos-sdk-csharp --version 1.3.8-alpha20240820031901
ProductVersions
.NET
net5.0net6.0
.NET Standard
netstandard2.0

README

nacos-sdk-csharp

nacos-sdk-csharp provides basic nacos operation.

// config
builder.Services.AddNacosV2Config(x =>
{
    x.ServerAddresses = new List<string> { "http://localhost:8848/" };
    x.Namespace = "cs";
    x.UserName = "nacos";
    x.Password = "nacos";
});

// naming
builder.Services.AddNacosV2Naming(x =>
{
    x.ServerAddresses = new List<string> { "http://localhost:8848/" };
    x.Namespace = "cs";
    x.UserName = "nacos";
    x.Password = "nacos";
});

// or 

builder.Services.AddNacosV2Config(builder.Configuration);

builder.Services.AddNacosV2Naming(builder.Configuration);
private readonly INacosConfigService _config;
private readonly INacosNamingService _naming;

public TheCtor(INacosConfigService config, INacosNamingService naming)
{
    _config = config;
    _naming = naming;
}

Links

Changes from Previous Version

No structural changes between v1.3.7 and v1.3.8-alpha20240820031901.

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.