Zymergi.AspNetCore
11.3.0-alpha
See the version list below for details.
dotnet add package Zymergi.AspNetCore --version 11.3.0-alpha
NuGet\Install-Package Zymergi.AspNetCore -Version 11.3.0-alpha
<PackageReference Include="Zymergi.AspNetCore" Version="11.3.0-alpha" />
<PackageVersion Include="Zymergi.AspNetCore" Version="11.3.0-alpha" />
<PackageReference Include="Zymergi.AspNetCore" />
paket add Zymergi.AspNetCore --version 11.3.0-alpha
#r "nuget: Zymergi.AspNetCore, 11.3.0-alpha"
#:package Zymergi.AspNetCore@11.3.0-alpha
#addin nuget:?package=Zymergi.AspNetCore&version=11.3.0-alpha&prerelease
#tool nuget:?package=Zymergi.AspNetCore&version=11.3.0-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, Zymergi.Data, and Zymergi.Rendering (XSLT views). CachedServiceBase lives in this package, namespace Zymergi.Http. Article and social controllers are not in this package. Zymergi.Social stays a packed package. The build does not pack Zymergi.Articles. 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 is obsolete. It reads claims from a JWT string. It does not check the signature, the issuer, or the lifetime. Use Zymergi.Identity.Auth0.Auth0TokenValidator when this library should validate 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, WebLoggor, LogSearchModel, and WebExtensionMethods.
Zymergi.AspNetCore.Logging.TrackUsageAttribute is obsolete. It still logs through WebLoggor. The replacement is Zymergi.AspNetCore.Diagnostics.TrackUsageAttribute. Register it with AddTrackUsage. Set TrackUsageOptions.RedactRouteData when route values must not appear in the log. The default leaves the route values visible.
services.AddTrackUsage(options => options.RedactRouteData = true);
| 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.3.0-alpha)
- Zymergi.Data (>= 11.3.0-alpha)
- Zymergi.Rendering (>= 11.3.0-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.4.0-alpha | 95 | 11/16/2026 |
| 11.3.0-alpha | 68 | 11/12/2026 |
| 11.2.0-alpha | 62 | 11/2/2026 |
| 11.1.1-alpha | 99 | 10/4/2026 |
| 11.1.0-alpha | 108 | 10/1/2026 |
| 11.0.6-alpha | 122 | 7/10/2026 |
| 11.0.5-alpha | 129 | 7/9/2026 |
| 11.0.4-alpha | 91 | 7/6/2026 |
| 11.0.3-alpha | 81 | 7/6/2026 |
| 11.0.2-alpha | 129 | 6/30/2026 |
| 11.0.1-alpha | 123 | 6/30/2026 |
| 11.0.0-alpha | 83 | 6/30/2026 |