Sup.OpenApi.Kernel
2026.10.33
dotnet add package Sup.OpenApi.Kernel --version 2026.10.33
NuGet\Install-Package Sup.OpenApi.Kernel -Version 2026.10.33
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="Sup.OpenApi.Kernel" Version="2026.10.33" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sup.OpenApi.Kernel" Version="2026.10.33" />
<PackageReference Include="Sup.OpenApi.Kernel" />
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 Sup.OpenApi.Kernel --version 2026.10.33
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sup.OpenApi.Kernel, 2026.10.33"
#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 Sup.OpenApi.Kernel@2026.10.33
#: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=Sup.OpenApi.Kernel&version=2026.10.33
#tool nuget:?package=Sup.OpenApi.Kernel&version=2026.10.33
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sup.OpenApi.Kernel
SUP开放API内核组件 - .NET 8.0
简介
Sup.OpenApi.Kernel 是 SUP 开放 API 平台内核服务的对接组件,提供服务注册、认证、访问和数据接口的连接能力。
主要功能
- 服务注册:服务注册表查询
- 账户认证:账户登录和认证
- 访问控制:访问权限验证
- 数据访问:数据接口调用
安装
dotnet add package Sup.OpenApi.Kernel
快速开始
1. 基础配置
using Sup.OpenApi.Configure;
var config = new OpenServiceConfig
{
BaseUrl = "https://api.example.com",
ServiceCode = "your-service-code",
SecurityKey = "your-security-key",
KernelPath = new OpenKernelConfig
{
ServiceRegistry = "/app/kernel/open/service/v1/registry",
AccountAuth = "/app/kernel/open/account/v1/auth",
Access = "/app/kernel/open/access/v1/check",
Data = "/app/kernel/open/data/v1/query"
}
};
2. 使用内核服务
using Sup.OpenApi.Kernel;
// 创建内核服务实例
var kernelService = new OpenKernelService(config);
// 服务注册查询
var registry = await kernelService.GetRegistryAsync();
// 账户认证
var authResult = await kernelService.AuthAsync("username", "password");
// 访问控制检查
var accessResult = await kernelService.CheckAccessAsync("resource-id", "action");
// 数据查询
var dataResult = await kernelService.QueryDataAsync("query-id", parameters);
核心类
OpenKernelService
内核服务主类。
public class OpenKernelService : OpenServiceFetchable
{
public Task<OpenServiceRegistry?> GetRegistryAsync();
public Task<OpenAuthResult?> AuthAsync(string username, string password);
public Task<OpenAccessResult?> CheckAccessAsync(string resourceId, string action);
public Task<OpenDataResult?> QueryDataAsync(string queryId, object parameters);
}
OpenKernelConfig
内核服务路径配置。
public class OpenKernelConfig
{
public string? ServiceRegistry { get; set; }
public string? AccountAuth { get; set; }
public string? Access { get; set; }
public string? Data { get; set; }
}
服务端点
| 端点 | 描述 |
|---|---|
/app/kernel/open/service/v1/registry |
服务注册表 |
/app/kernel/open/account/v1/auth |
账户认证 |
/app/kernel/open/access/v1/check |
访问控制 |
/app/kernel/open/data/v1/query |
数据查询 |
依赖项
- Sup.Kernel.Define - SUP 内核定义
- Sup.OpenApi - 核心组件
技术栈
- .NET 8.0
- C# 12
许可证
MIT License
作者
© 2026 nuoyi.cc
链接
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Sup.Kernel.Define (>= 2026.10.103)
- Sup.OpenApi (>= 2026.10.33)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sup.OpenApi.Kernel:
| Package | Downloads |
|---|---|
|
Sup.OpenApi.Configuration
SUP.OpenApi.Configuration 是 SUP 开放 API 平台的配置组件,提供建模配置和数据库连接配置的获取与管理能力。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.10.33 | 274 | 10/16/2026 |
| 2026.10.32 | 245 | 10/8/2026 |
| 2026.9.31 | 4,799 | 9/3/2026 |
| 2026.9.30 | 265 | 9/2/2026 |
| 2026.8.29 | 139 | 8/31/2026 |
| 2026.8.28 | 144 | 8/31/2026 |
| 2026.8.27 | 137 | 8/31/2026 |
| 2026.8.26 | 998 | 8/14/2026 |
| 2026.8.25 | 147 | 8/13/2026 |
| 2026.8.24 | 144 | 8/10/2026 |
| 2026.7.23 | 378 | 7/28/2026 |
| 2026.7.22 | 372 | 7/8/2026 |
| 2026.7.21 | 150 | 7/7/2026 |
| 2026.7.20 | 155 | 7/3/2026 |
| 2026.6.19 | 170 | 6/25/2026 |
| 2026.6.18 | 162 | 6/24/2026 |
| 2026.6.17 | 150 | 6/13/2026 |
| 2026.6.16 | 163 | 6/13/2026 |
| 2026.6.15 | 156 | 6/13/2026 |
| 2026.6.14 | 163 | 6/13/2026 |
Loading failed