Asgard.Hosts.AspNetCore 3.0.2

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

Asgard.Hosts.AspNetCore

项目简介

Asgard.Hosts.AspNetCore 是一个高度模块化的 ASP.NET Core 宿主框架,专为分布式系统和插件式架构设计,支持灵活扩展和高性能服务承载。

主要特性

  • 插件式架构,支持热插拔和动态加载
  • 支持多种中间件和服务注册
  • 内置跨域、静态文件、Swagger、WebSocket、GRPC等常用功能
  • 与 Asgard.Abstract、Asgard.Extends 等模块无缝集成
  • 适用于微服务、后台管理、API网关等多种场景

快速开始

var builder = new YggdrasilBuilder();
// 配置各项服务
var host = builder.BuildAspNetCoreHost();
await host.StartAsync();

NuGet 包信息

  • 包名:Asgard.Hosts.AspNetCore
  • 支持平台:.NET 8.0 及以上
  • 安装方式:
dotnet add package Asgard.Hosts.AspNetCore

典型应用场景

  • 微服务网关
  • 后台管理系统
  • 高性能 API 服务
  • 插件式业务扩展

扩展与定制

支持自定义插件、日志、缓存、认证、数据库等模块,详见接口文档和源码注释。

许可证

MIT


如需详细文档和示例,请参考源码及相关模块的 README。

flowchart TD
    A[Asgard.Hosts.AspNetCore] --> B[插件管理]
    A --> C[中间件扩展]
    A --> D[服务注册]
    A --> E[静态文件/Swagger/WebSocket/GRPC]
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
3.1.9 113 1/16/2026
3.1.8 100 1/15/2026
3.1.7 190 12/22/2025
3.1.6 446 12/11/2025
3.1.5 228 12/7/2025
3.1.4 687 12/2/2025
3.1.2 270 11/30/2025
3.1.1 277 11/30/2025
3.1.0 259 11/22/2025
3.0.2 360 11/17/2025
3.0.1 261 11/14/2025
3.0.0 262 11/14/2025