Asgard.Hosts.AspNetCore
3.1.9
dotnet add package Asgard.Hosts.AspNetCore --version 3.1.9
NuGet\Install-Package Asgard.Hosts.AspNetCore -Version 3.1.9
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.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asgard.Hosts.AspNetCore" Version="3.1.9" />
<PackageReference Include="Asgard.Hosts.AspNetCore" />
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.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Asgard.Hosts.AspNetCore, 3.1.9"
#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.1.9
#: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.1.9
#tool nuget:?package=Asgard.Hosts.AspNetCore&version=3.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | 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
- Asgard.Abstract (>= 3.1.9)
- Asgard.Extends.AspNetCore (>= 3.1.9)
- Asgard.Extends.Json (>= 3.1.9)
- Asgard.IDGen (>= 3.1.9)
- Asgard.Logger.FreeSqlProvider (>= 3.1.9)
- Asgard.Tools (>= 3.1.9)
- Grpc.AspNetCore.Server (>= 2.76.0)
- Swashbuckle.AspNetCore (>= 10.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.