Asgard.Core 4.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Asgard.Core --version 4.0.2
                    
NuGet\Install-Package Asgard.Core -Version 4.0.2
                    
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.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asgard.Core" Version="4.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Asgard.Core" />
                    
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 Asgard.Core --version 4.0.2
                    
#r "nuget: Asgard.Core, 4.0.2"
                    
#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.2
                    
#: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.2
                    
Install as a Cake Addin
#tool nuget:?package=Asgard.Core&version=4.0.2
                    
Install as a Cake Tool

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:在更高层提供完整宿主体验

相关资源

如果你计划在 AI 协作场景下使用 Asgard.Core,建议把 Asgard.Skills 一起接入,这样模型能直接理解 Asgard 的项目结构、规范和推荐用法。

Product 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.

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 1.0.0 is deprecated.