GJJ.Keystone.Worker 6.0.0

dotnet add package GJJ.Keystone.Worker --version 6.0.0
                    
NuGet\Install-Package GJJ.Keystone.Worker -Version 6.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GJJ.Keystone.Worker" Version="6.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GJJ.Keystone.Worker" Version="6.0.0" />
                    
Directory.Packages.props
<PackageReference Include="GJJ.Keystone.Worker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GJJ.Keystone.Worker --version 6.0.0
                    
#r "nuget: GJJ.Keystone.Worker, 6.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GJJ.Keystone.Worker@6.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GJJ.Keystone.Worker&version=6.0.0
                    
Install as a Cake Addin
#tool nuget:?package=GJJ.Keystone.Worker&version=6.0.0
                    
Install as a Cake Tool

GJJ.Keystone.Worker

6.0.0 实例 IP 启动规则

项目入口通过 defaultIp 声明测试默认 IP(当前为 192.168.1.165),不传参数也能启动。需要覆盖时使用中立参数 --ip=<节点IP>;Web 监听地址 / 端口仍用 --urls,Worker 健康端口仍用 --Keystone:Worker:HealthEndpoint:Port。IP 在加载远端配置前固定;注册、心跳、注销与日志共用最终地址。网关和只查询服务的 Worker 不要求 IP。

删除 LocalIP、Nacos:Ip、Nacos:PreferredNetworks 和 Worker 专属 IP 配置,不提供旧键回退。远端 DataId 不能保存根级 ip。本地显式关闭注册不会被远端重新开启。

完整规则见服务启动监听端口与实例 IP 统一规范。

面向 Generic Host / Worker Service 的 Keystone 基础设施包,提供 Nacos/TongNCS 配置与发现、Serilog/OpenTelemetry、KV、启动诊断和可选轻量健康监听。

健康监听端口

5.0.0 起项目通过代码传入默认健康端口:

builder.Services.AddGjjWorkerInfrastructure(
    builder.Configuration,
    builder.Configuration,
    "GJJ.JobService",
    defaultHealthPort: 16009,
    options => options.HealthEndpoint.Enabled = true);

本地配置只需控制是否启用和健康路径,不必重复默认端口:

{
  "Keystone": {
    "Worker": {
      "HealthEndpoint": {
        "Enabled": true,
        "Paths": [ "/health", "/api/Health" ]
      }
    }
  }
}

启动时覆盖:

dotnet GJJ.JobService.dll --Keystone:Worker:HealthEndpoint:Port=26009

不传参数时使用代码默认值;需要临时覆盖时只使用上述专用参数。HostPort、Nacos:Port、GJJ_HOST_PORT、Web urls、配置式 DefaultPort 和独立服务注册端口回退已移除。完整契约见服务启动监听端口统一规范。

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.0 160 10/14/2026
5.0.5 118 9/28/2026
5.0.4 284 8/19/2026
5.0.3 136 8/7/2026
5.0.0 149 7/20/2026
4.4.3 148 7/13/2026
4.4.2 151 7/10/2026
4.4.1 144 7/8/2026