Asgard.Core
4.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Asgard.Core --version 4.0.4
NuGet\Install-Package Asgard.Core -Version 4.0.4
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="Asgard.Core" Version="4.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asgard.Core" Version="4.0.4" />
<PackageReference Include="Asgard.Core" />
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 Asgard.Core --version 4.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Asgard.Core, 4.0.4"
#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 Asgard.Core@4.0.4
#: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=Asgard.Core&version=4.0.4
#tool nuget:?package=Asgard.Core&version=4.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Asgard.Core
Asgard.Core 是 Asgard 的核心实现包,提供缓存、任务调度、消息、日志、插件、安全和配置等默认基础设施能力。
如果你已经确定要使用 Asgard 的运行时行为,而不只是依赖接口定义,这个包通常是核心依赖。
适用场景
- 需要 Asgard 的默认基础设施实现
- 想统一接入缓存、消息、调度、插件和安全能力
- 需要基于
Asgard.Abstractions的契约直接落地运行时
包含内容
- 基于内存和 Redis 的多级缓存能力
- 基于 Quartz 的任务调度与触发器管理
- RabbitMQ 和 Kafka 消息基础设施
- 日志、安全、插件加载和 YAML 配置帮助器
安装
dotnet add package Asgard.Core
快速开始
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddAsgardContext();
services.AddAsgardSecurityServices(options =>
{
options.Key = "base64-key";
options.Iv = "base64-iv";
});
包关系
Asgard.Abstractions:只提供契约和共享模型Asgard.Core:提供默认运行时实现Asgard.AspNetCore.Core:在Asgard.Core之上提供 Web 运行时集成Asgard.Yggdrasil.AspNetCore:在更高层提供完整宿主体验
相关资源
- 主仓库:BenLampson/Asgard
- 快速开始文档:02-快速开始.md
- Asgard Skills 仓库:BenLampson/Asgard.Skills
如果你计划在 AI 协作场景下使用 Asgard.Core,建议把 Asgard.Skills 一起接入,这样模型能直接理解 Asgard 的项目结构、规范和推荐用法。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Asgard.Abstractions (>= 4.0.4)
- BCrypt.Net-Next (>= 4.1.0)
- Confluent.Kafka (>= 2.14.0)
- FreeSql.Provider.MySql (>= 3.5.307)
- Microsoft.Extensions.Caching.Memory (>= 10.0.5)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 10.0.5)
- Microsoft.Extensions.Configuration (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Json (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.5)
- Quartz (>= 3.17.0)
- RabbitMQ.Client (>= 7.2.1)
- Serilog (>= 4.3.1)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- YamlDotNet (>= 16.3.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Asgard.Core:
| Package | Downloads |
|---|---|
|
Asgard.JsonConverterExtends
沐豆科技阿斯加德框架集,一切为了.NET开发的便利性 |
|
|
Asgard.AspNetCore.Core
Asgard.AspNetCore.Core 为 Asgard 框架提供 ASP.NET Core 运行时实现,包括租户感知中间件、身份上下文集成和服务注册帮助器,构建在共享抽象包之上。 |
|
|
Asgard.Yggdrasil.AspNetCore
Asgard.Yggdrasil.AspNetCore 是 Asgard 框架的 ASP.NET Core 主机层,提供完整的 Web 应用程序启动模板,集成了Swagger、数据保护、日志和所有核心服务,帮助快速构建模块化应用。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 4.0.5 | 31 | 4/11/2026 | |
| 4.0.4 | 36 | 4/10/2026 | |
| 4.0.3 | 52 | 4/9/2026 | |
| 4.0.2 | 53 | 4/8/2026 | |
| 4.0.1 | 117 | 4/3/2026 | |
| 4.0.0 | 125 | 4/1/2026 | |
| 4.0.0-preview.7 | 55 | 3/31/2026 | |
| 4.0.0-preview.6 | 47 | 3/30/2026 | |
| 4.0.0-preview.5 | 142 | 3/28/2026 | |
| 4.0.0-preview.4 | 46 | 3/27/2026 | |
| 4.0.0-preview.3 | 42 | 3/27/2026 | |
| 4.0.0-preview.2 | 43 | 3/27/2026 | |
| 4.0.0-preview.1 | 42 | 3/27/2026 | |
| 1.0.0 | 1,530 | 6/12/2023 |