GJJ.Keystone.Abstractions
2.0.3
See the version list below for details.
dotnet add package GJJ.Keystone.Abstractions --version 2.0.3
NuGet\Install-Package GJJ.Keystone.Abstractions -Version 2.0.3
<PackageReference Include="GJJ.Keystone.Abstractions" Version="2.0.3" />
<PackageVersion Include="GJJ.Keystone.Abstractions" Version="2.0.3" />
<PackageReference Include="GJJ.Keystone.Abstractions" />
paket add GJJ.Keystone.Abstractions --version 2.0.3
#r "nuget: GJJ.Keystone.Abstractions, 2.0.3"
#:package GJJ.Keystone.Abstractions@2.0.3
#addin nuget:?package=GJJ.Keystone.Abstractions&version=2.0.3
#tool nuget:?package=GJJ.Keystone.Abstractions&version=2.0.3
GJJMicroserviceKit
GJJ 微服务公共核心库:国密工具(SM2/SM3/SM4)、JWT 辅助、Excel(NPOI)、图像工具(ImageSharp Drawing)、反射注册、Options 等通用能力。
目标:把与 ASP.NET Core 无关的通用逻辑沉淀为独立包,供微服务/控制台/桌面工具等复用。
✨ 功能概览
- 🛡️ 国密:SM4 加解密、SM2/SM3(依赖 BouncyCastle 或自研包装)
- 🔐 JWT:Token 生成/解析辅助(
System.IdentityModel.Tokens.Jwt) - 📊 Excel:NPOI 导入/导出,含常用样式/边框/冻结/列宽
- 🖼️ 图像:基于 ImageSharp.Drawing 的简单绘图与水印
- 🧭 反射注册:扫描程序集注册服务/管道步骤(示例扩展)
- ⚙️ Options:强类型配置 +
IOptions<T>校验约束
注意:如果你在核心库中使用了
HttpContext等 Web 类型,需要<FrameworkReference Include="Microsoft.AspNetCore.App" />。若要跨平台/跨宿主复用,建议将这些依赖迁到GJJMicroserviceKit.AspNetCore。
🧩 环境要求
- .NET 8.0
- 若使用
System.Drawing.Common,不推荐在 Linux 上生产使用(兼容性/字体/原生依赖问题);建议使用 ImageSharp 体系替代。
📦 安装
dotnet add package GJJMicroserviceKit
| Product | Versions 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. |
-
net8.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on GJJ.Keystone.Abstractions:
| Package | Downloads |
|---|---|
|
GJJ.Keystone.Toolkit
GJJ 微服务公共核心库(国密/通用工具/Excel/反射注册等) |
|
|
GJJ.Keystone.AspNetCore
GJJ 微服务 ASP.NET Core 扩展(Nacos/TongNCS/OTel/中间件/过滤器/JWT等) |
|
|
GJJ.Keystone.AspNetCore.Redis
[DEPRECATED] 本包已弃用,请改用 GJJ.Keystone.AspNetCore.KvStore。原职责:INonceStore / IJtiBlacklistStore / ISmSessionKeyStore 的 Redis 实现 + jti 双层缓存(L1 + Redis + Pub/Sub) |
|
|
GJJ.Keystone.AspNetCore.KvStore
GJJ Keystone KvStore:通用 KV / 计数器 / 配置加载抽象的 Redis 实现 + Resilient 降级 + Memory 兜底。兼容 TongRDS(Redis 协议)。替代原 Consul KV 与 .Redis 包的安全态 Store。 |
|
|
GJJ.Keystone.AspNetCore.Messaging
GJJ Keystone Messaging:基于 TongHTP Adapter(HTTP REST)的消息收发封装。业务微服务注入 IMessageProducer / IMessageHandler 即可完成发送与订阅,无需感知 Java 中间层。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.2 | 0 | 6/26/2026 |
| 4.2.1 | 128 | 6/22/2026 |
| 4.2.0 | 275 | 6/5/2026 |
| 4.1.0 | 166 | 5/27/2026 |
| 4.0.0 | 159 | 5/22/2026 |
| 3.0.11 | 152 | 5/19/2026 |
| 3.0.10 | 187 | 5/13/2026 |
| 3.0.9 | 143 | 5/11/2026 |
| 3.0.8 | 137 | 5/11/2026 |
| 3.0.7 | 144 | 5/8/2026 |
| 3.0.6 | 124 | 5/6/2026 |
| 3.0.5 | 137 | 5/6/2026 |
| 3.0.4 | 147 | 5/6/2026 |
| 3.0.3 | 136 | 4/30/2026 |
| 3.0.2 | 146 | 4/30/2026 |
| 3.0.0 | 125 | 4/29/2026 |
| 2.0.3 | 132 | 4/13/2026 |
| 2.0.2 | 127 | 4/9/2026 |
| 2.0.1 | 121 | 4/8/2026 |
| 2.0.0 | 128 | 4/8/2026 |