Zonit.Extensions.Abstractions
0.2.1
dotnet add package Zonit.Extensions.Abstractions --version 0.2.1
NuGet\Install-Package Zonit.Extensions.Abstractions -Version 0.2.1
<PackageReference Include="Zonit.Extensions.Abstractions" Version="0.2.1" />
<PackageVersion Include="Zonit.Extensions.Abstractions" Version="0.2.1" />
<PackageReference Include="Zonit.Extensions.Abstractions" />
paket add Zonit.Extensions.Abstractions --version 0.2.1
#r "nuget: Zonit.Extensions.Abstractions, 0.2.1"
#:package Zonit.Extensions.Abstractions@0.2.1
#addin nuget:?package=Zonit.Extensions.Abstractions&version=0.2.1
#tool nuget:?package=Zonit.Extensions.Abstractions&version=0.2.1
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
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Zonit.Extensions.Abstractions:
| Package | Downloads |
|---|---|
|
Zonit.Extensions
Core extensions library providing immutable value objects (Title, Description, UrlSlug, Url, Culture, Price), text analysis utilities, XML converters, and reflection helpers for .NET applications. Features SEO-optimized value objects with automatic validation, JSON/TypeConverter support, and modern C# patterns (IParsable, IComparable). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.1 | 0 | 1/11/2026 |
| 0.2.0 | 0 | 1/11/2026 |
| 0.1.54 | 84 | 1/6/2026 |
| 0.1.53 | 162 | 1/4/2026 |
| 0.1.52 | 112 | 1/4/2026 |
| 0.1.51 | 142 | 1/2/2026 |
| 0.1.50 | 436 | 11/18/2025 |
| 0.1.27 | 176 | 8/16/2025 |
| 0.1.26 | 216 | 8/14/2025 |
| 0.1.25 | 295 | 7/26/2025 |
| 0.1.24 | 307 | 7/26/2025 |
| 0.1.23 | 335 | 7/26/2025 |
| 0.1.22 | 331 | 7/26/2025 |
| 0.1.21 | 335 | 7/26/2025 |
| 0.1.20 | 551 | 7/21/2025 |
| 0.1.19 | 533 | 7/21/2025 |
| 0.1.18 | 388 | 7/20/2025 |
| 0.1.17 | 181 | 6/27/2025 |
| 0.1.16 | 239 | 6/17/2025 |
| 0.1.15 | 214 | 6/17/2025 |
| 0.1.14 | 214 | 6/16/2025 |
| 0.1.13 | 220 | 6/16/2025 |
| 0.1.12 | 211 | 6/16/2025 |
| 0.1.11 | 221 | 6/16/2025 |
| 0.1.10 | 253 | 6/16/2025 |
| 0.1.9 | 175 | 6/6/2025 |
| 0.1.8 | 225 | 5/28/2025 |
| 0.1.7 | 216 | 5/27/2025 |
| 0.1.6 | 214 | 5/26/2025 |
| 0.1.5 | 218 | 5/26/2025 |
| 0.1.4 | 201 | 5/26/2025 |
| 0.1.3 | 218 | 5/26/2025 |
| 0.1.2 | 193 | 5/26/2025 |
| 0.1.1 | 211 | 5/25/2025 |
| 0.1.0 | 203 | 5/25/2025 |
| 0.0.2 | 197 | 5/19/2025 |
| 0.0.1 | 221 | 5/8/2025 |