![]() |
VOOZH | about |
dotnet add package Galosys.Foundation.Yarp.NacosNaming --version 26.5.20.1
NuGet\Install-Package Galosys.Foundation.Yarp.NacosNaming -Version 26.5.20.1
<PackageReference Include="Galosys.Foundation.Yarp.NacosNaming" Version="26.5.20.1" />
<PackageVersion Include="Galosys.Foundation.Yarp.NacosNaming" Version="26.5.20.1" />Directory.Packages.props
<PackageReference Include="Galosys.Foundation.Yarp.NacosNaming" />Project file
paket add Galosys.Foundation.Yarp.NacosNaming --version 26.5.20.1
#r "nuget: Galosys.Foundation.Yarp.NacosNaming, 26.5.20.1"
#:package Galosys.Foundation.Yarp.NacosNaming@26.5.20.1
#addin nuget:?package=Galosys.Foundation.Yarp.NacosNaming&version=26.5.20.1Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.Yarp.NacosNaming&version=26.5.20.1Install as a Cake Tool
基于 Nacos Naming 的 YARP 配置提供者,自动从 Nacos 注册中心获取服务实例并生成路由配置。
成熟度: 🟡 可用 — 功能完整,测试或文档可能不完善
dotnet add package Galosys.Foundation.Yarp.NacosNaming
在 appsettings.json 中配置 Nacos:
{
"NacosNaming": {
"ServerAddresses": ["http://nacos:8848"],
"GroupName": "DEFAULT_GROUP"
}
}
模块会自动注册 NacosNamingConfigProvider,从 Nacos 获取所有服务实例并生成 YARP 路由和集群配置。
INacosNamingService.GetServicesOfServer() 获取指定分组下的所有服务GetAllInstances() 获取健康实例 URL/{serviceName}/{**catch-all})和集群配置(RoundRobin 负载均衡)配合 Galosys.Foundation.Yarp 的分布式配置刷新机制,服务上下线后可通过 RabbitMQ 广播或轮询降级自动更新路由。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Galosys.Foundation.Yarp.NacosNaming:
| Package | Downloads |
|---|---|
|
Galosys.Gateway.App
Galosys.Foundation快速开发库 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.5.20.1 | 104 | 5/20/2026 |
| 26.5.19.1 | 93 | 5/19/2026 |
| 26.5.18.1 | 98 | 5/18/2026 |
| 26.5.15.1 | 97 | 5/15/2026 |
| 26.5.12.3 | 93 | 5/12/2026 |
| 26.4.27.1-rc1 | 96 | 4/26/2026 |
| 26.4.25.1-rc1 | 90 | 4/25/2026 |
| 26.4.22.2-rc7 | 94 | 4/22/2026 |
| 26.4.22.2-rc6 | 87 | 4/22/2026 |
| 26.4.22.2-rc4 | 93 | 4/22/2026 |
| 26.4.22.2-rc3 | 89 | 4/22/2026 |
| 26.4.19.1-rc1 | 98 | 4/19/2026 |
| 26.4.12.8-rc1 | 102 | 4/12/2026 |
| 26.4.12.7-rc1 | 95 | 4/12/2026 |
| 26.1.30.1-rc1 | 146 | 1/30/2026 |
| 26.1.29.1 | 141 | 1/29/2026 |
| 26.1.28.5 | 149 | 1/28/2026 |
| 26.1.28.4 | 141 | 1/28/2026 |
| 26.1.28.2 | 142 | 1/28/2026 |
| 26.1.23.6 | 129 | 1/23/2026 |