Asgard.Abstractions.AspNetCore 4.0.0-preview.5

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

Asgard.Abstractions.AspNetCore

Asgard.Abstractions.AspNetCore contains the ASP.NET Core abstractions shared by the Asgard framework packages.

What is included

  • Base controller types for Asgard-style APIs
  • Host configuration models for auth, CORS, Kestrel, Swagger, and runtime options
  • Identity context contracts used by middleware and web-facing services
  • Shared request and response models used by ASP.NET Core integrations

Typical usage

This package is usually consumed indirectly through Asgard.AspNetCore.Core, but it can also be referenced directly when you want to build custom ASP.NET Core integrations on top of Asgard contracts.

using Asgard.Abstractions.AspNetCore.Controller;
using Asgard.Abstractions.AspNetCore.Model;

public sealed class HealthController : BaseController
{
    [HttpGet("health")]
    public ActionResult<Response<string>> Get()
        => Ok(Response.Success("ok"));
}

Package role

  • Asgard.Abstractions: cross-cutting domain and infrastructure contracts
  • Asgard.Abstractions.AspNetCore: ASP.NET Core-specific contracts
  • Asgard.Core: core implementations
  • Asgard.AspNetCore.Core: ASP.NET Core runtime integrations
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 (2)

Showing the top 2 NuGet packages that depend on Asgard.Abstractions.AspNetCore:

Package Downloads
Asgard.AspNetCore.Core

Asgard.AspNetCore.Core 为 Asgard 框架提供 ASP.NET Core 运行时实现,包括租户感知中间件、身份上下文集成和服务注册帮助器,构建在共享抽象包之上。

Asgard.TsGen

Asgard.TsGen generates reusable TypeScript clients by scanning ASP.NET Core controllers decorated with AsgardTsGenAttribute.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.7 132 5/24/2026
4.1.6 134 5/24/2026
4.1.5 133 5/23/2026
4.1.4 139 5/16/2026
4.1.3 144 4/28/2026
4.1.2 127 4/21/2026
4.1.1 136 4/15/2026
4.1.0 141 4/14/2026
4.0.5 131 4/11/2026
4.0.4 145 4/10/2026
4.0.3 120 4/9/2026
4.0.2 124 4/8/2026
4.0.1 134 4/3/2026
4.0.0 138 4/1/2026
4.0.0-preview.7 70 3/31/2026
4.0.0-preview.6 70 3/30/2026
4.0.0-preview.5 156 3/28/2026
4.0.0-preview.4 65 3/27/2026
4.0.0-preview.3 65 3/27/2026
Loading failed