Zonit.Extensions
0.2.2
See the version list below for details.
dotnet add package Zonit.Extensions --version 0.2.2
NuGet\Install-Package Zonit.Extensions -Version 0.2.2
<PackageReference Include="Zonit.Extensions" Version="0.2.2" />
<PackageVersion Include="Zonit.Extensions" Version="0.2.2" />
<PackageReference Include="Zonit.Extensions" />
paket add Zonit.Extensions --version 0.2.2
#r "nuget: Zonit.Extensions, 0.2.2"
#:package Zonit.Extensions@0.2.2
#addin nuget:?package=Zonit.Extensions&version=0.2.2
#tool nuget:?package=Zonit.Extensions&version=0.2.2
Zonit.Extensions
Useful tools for Blazor
Abstractions Package
Zonit.Extensions.Abstractions - Interfaces and base abstractions
dotnet add package Zonit.Extensions.Abstractions
Zonit.Extensions - Core utilities and extensions
dotnet add package Zonit.Extensions
What's included:
- Exceptions - Structured exception handling with i18n support, error codes, and strongly-typed error parameters
- Reflection - Utility class for discovering assemblies and types that implement or inherit from a specified base type
- Xml - Utility class for serializing objects to XML and deserializing XML back to objects
- ValueObjects - Immutable value objects for common domain concepts (Price, Title, Description, UrlSlug, Culture)
Blazor Website Extensions
Zonit.Extensions.Website.Abstractions - Interfaces and abstractions for Blazor
dotnet add package Zonit.Extensions.Website.Abstractions
Zonit.Extensions.Website - Blazor-specific components and utilities
dotnet add package Zonit.Extensions.Website
What's included:
- Components - Reusable Blazor components
- Cookie handling with Blazor support (see below)
Cookie handling with support for Blazor
Installation:
Add this in Routes.razor
@using Zonit.Extensions
<ZonitCookiesExtension />
Services in Program.cs
builder.Services.AddCookiesExtension();
App in Program.cs
app.UseCookiesExtension();
Example:
@page "/"
@rendermode InteractiveServer
@using Zonit.Extensions.Website
@inject ICookieProvider Cookie
@foreach (var cookie in Cookie.GetCookies())
{
<p>@cookie.Name @cookie.Value</p>
}
API
public CookieModel? Get(string key);
public CookieModel Set(string key, string value, int days = 12 * 30);
public CookieModel Set(CookieModel model);
public Task<CookieModel> SetAsync(string key, string value, int days = 12 * 30);
public Task<CookieModel> SetAsync(CookieModel model);
public List<CookieModel> GetCookies();
We use SetAsync only in the Blazor circuit. It executes the JS code with the Cookies record.
| 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 is compatible. 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 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
- Diacritics (>= 4.0.17)
- Zonit.Extensions.Abstractions (>= 0.2.2)
-
net8.0
- Diacritics (>= 4.0.17)
- Zonit.Extensions.Abstractions (>= 0.2.2)
-
net9.0
- Diacritics (>= 4.0.17)
- Zonit.Extensions.Abstractions (>= 0.2.2)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Zonit.Extensions:
| Package | Downloads |
|---|---|
|
Zonit.Extensions.Ai.Abstractions
Core abstractions and interfaces for Zonit.Extensions.Ai. Use this package when you only need the interfaces without implementation, perfect for defining prompts in domain layers. |
|
|
Zonit.Extensions.Website
ASP.NET Core and Blazor web extensions providing base components (PageBase, PageEditBase, PageViewBase), navigation services, breadcrumbs management, toast notifications, cookie handling, and data protection utilities for building modern web applications. |
|
|
Zonit.Extensions.Databases.SqlServer
SQL Server provider for Zonit.Extensions.Databases - Entity Framework Core repository with fluent query API, ThenInclude, DTO mapping, and full-text search support. |
|
|
Zonit.Extensions.Tenants
Per-domain tenant identity and settings for Zonit applications: ITenantSource (the data adapter you implement), the scoped ITenantRepository/ITenantProvider pair, plugin-aware Setting<T> models, and a source generator that gives every setting a strongly-typed accessor. Framework-agnostic: no ASP.NET Core dependency and no middleware here. Built on top of Zonit.Extensions value objects. |
|
|
Zonit.Extensions.Cultures
Culture, time-zone and translation services for Zonit applications. Provides ICultureState/ICultureManager (per-scope culture and time zone), ICultureProvider (translation rendering), ITranslationManager and its process-wide registry, ILanguageProvider with 17 built-in languages, and the Translation value object. Framework-agnostic: no HttpContext and no middleware here — the ASP.NET culture middleware lives in Zonit.Extensions.Website. Built on the Culture and TimeZone value objects from Zonit.Extensions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0-preview.27 | 102 | 8/17/2026 |
| 10.0.0-preview.26 | 179 | 8/14/2026 |
| 10.0.0-preview.25 | 84 | 8/14/2026 |
| 10.0.0-preview.24 | 86 | 8/12/2026 |
| 10.0.0-preview.23 | 88 | 8/11/2026 |
| 10.0.0-preview.22 | 85 | 8/11/2026 |
| 10.0.0-preview.21 | 85 | 8/11/2026 |
| 10.0.0-preview.20 | 84 | 8/10/2026 |
| 10.0.0-preview.19 | 84 | 8/10/2026 |
| 10.0.0-preview.18 | 92 | 8/9/2026 |
| 10.0.0-preview.17 | 91 | 8/9/2026 |
| 10.0.0-preview.16 | 95 | 8/9/2026 |
| 10.0.0-preview.15 | 81 | 8/7/2026 |
| 10.0.0-preview.14 | 89 | 8/6/2026 |
| 10.0.0-preview.13 | 89 | 8/6/2026 |
| 10.0.0-preview.12 | 77 | 8/6/2026 |
| 10.0.0-preview.11 | 107 | 8/4/2026 |
| 10.0.0-preview.10 | 94 | 8/3/2026 |
| 0.2.12 | 197 | 5/8/2026 |
| 0.2.2 | 149 | 1/15/2026 |