Zymergi.AspNetCore
11.1.1-alpha
dotnet add package Zymergi.AspNetCore --version 11.1.1-alpha
NuGet\Install-Package Zymergi.AspNetCore -Version 11.1.1-alpha
<PackageReference Include="Zymergi.AspNetCore" Version="11.1.1-alpha" />
<PackageVersion Include="Zymergi.AspNetCore" Version="11.1.1-alpha" />
<PackageReference Include="Zymergi.AspNetCore" />
paket add Zymergi.AspNetCore --version 11.1.1-alpha
#r "nuget: Zymergi.AspNetCore, 11.1.1-alpha"
#:package Zymergi.AspNetCore@11.1.1-alpha
#addin nuget:?package=Zymergi.AspNetCore&version=11.1.1-alpha&prerelease
#tool nuget:?package=Zymergi.AspNetCore&version=11.1.1-alpha&prerelease
Zymergi.AspNetCore
Shared ASP.NET Core layer for Zymergi apps: registrable-entity CRUD controllers, XSLT views, performance filters, and startup helpers.
Package id is Zymergi.AspNetCore. The C# namespace is Zymergi.AspNetCore.
Targets .NET 10. Depends on Zymergi.Core and Zymergi.Rendering (XSLT views). CachedServiceBase lives in this package, namespace Zymergi.Http. Article and social controllers are not in this package; reference Zymergi.Articles and Zymergi.Social from the host when those features are needed. Register a Zymergi.Search.* adapter in the host app when search is needed.
Install
dotnet add package Zymergi.AspNetCore
Usage
Subclass DbRegistrableControllerBase<T> rather than reimplementing CRUD. T is an IRegistrable, and the repository is an IDbRegistrableRepository<T>:
using Microsoft.AspNetCore.Mvc;
using Zymergi.Data;
using Zymergi.AspNetCore.Api.Controllers;
[Route("items")]
public class ItemsController(IDbRegistrableRepository<Item> repo, IHttpContextAccessor context)
: DbRegistrableControllerBase<Item>(repo, context)
{
}
DbRegistrableControllerBase<T> looks up entities by uid or handle and runs writes inside DbUnitOfWork. ControllerXslt renders XML through XSLT for SEO HTML. The XSLT pool is registered from configuration:
services.AddXslTransformViewPool(configuration); // requires PATH_XSL
AddXslTransformViewPool forwards to Zymergi.Rendering. The call still reads PATH_XSL and throws when the pool is resolved if the key is missing.
PersistLogEntryToRepoAsync resolves ILogRepository from the request services and awaits LogAsync. The host registers that repository. This package does not ship a MariaDB logging registration.
ClaimsList reads claims from a JWT string. It does not check the signature, the issuer, or the lifetime. The host validates the token. ClaimsExtensionMethods.GetValue returns the first matching claim value, or null.
using Zymergi.AspNetCore;
var claims = new ClaimsList(jwt);
string? email = claims.GetValue(ClaimTypes.Email);
Also included: CachedHttpClient, TrackPerformanceFilter / TrackUsageAttribute, WebLoggor, LogSearchModel, and WebExtensionMethods.
| 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. |
-
net10.0
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
- Zymergi.Core (>= 11.1.1-alpha)
- Zymergi.Rendering (>= 11.1.1-alpha)
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 |
|---|---|---|
| 11.1.1-alpha | 65 | 10/4/2026 |
| 11.1.0-alpha | 83 | 10/1/2026 |
| 11.0.6-alpha | 110 | 7/10/2026 |
| 11.0.5-alpha | 118 | 7/9/2026 |
| 11.0.4-alpha | 79 | 7/6/2026 |
| 11.0.3-alpha | 72 | 7/6/2026 |
| 11.0.2-alpha | 118 | 6/30/2026 |
| 11.0.1-alpha | 114 | 6/30/2026 |
| 11.0.0-alpha | 74 | 6/30/2026 |