Zonit.Extensions.Website 0.2.2

dotnet add package Zonit.Extensions.Website --version 0.2.2
                    
NuGet\Install-Package Zonit.Extensions.Website -Version 0.2.2
                    
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="Zonit.Extensions.Website" Version="0.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zonit.Extensions.Website" Version="0.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Zonit.Extensions.Website" />
                    
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 Zonit.Extensions.Website --version 0.2.2
                    
#r "nuget: Zonit.Extensions.Website, 0.2.2"
                    
#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 Zonit.Extensions.Website@0.2.2
                    
#: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=Zonit.Extensions.Website&version=0.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Zonit.Extensions.Website&version=0.2.2
                    
Install as a Cake Tool

Zonit.Extensions

Useful tools for Blazor


Abstractions Package

Zonit.Extensions.Abstractions - Interfaces and base abstractions

NuGet NuGet Downloads

dotnet add package Zonit.Extensions.Abstractions
Zonit.Extensions - Core utilities and extensions

NuGet NuGet Downloads

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

NuGet NuGet Downloads

dotnet add package Zonit.Extensions.Website.Abstractions 
Zonit.Extensions.Website - Blazor-specific components and utilities

NuGet NuGet Downloads

dotnet add package Zonit.Extensions.Website

What's included:

  • Components - Reusable Blazor components
  • Cookie handling with Blazor support (see below)

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Zonit.Extensions.Website:

Package Downloads
Zonit.Services.Dashboard

Package Description

Zonit.Services.Manager

Package Description

Zonit.SDK.Website

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.2 0 1/15/2026
0.2.1 83 1/11/2026
0.2.0 78 1/11/2026
0.1.54 93 1/6/2026
0.1.53 84 1/4/2026
0.1.52 83 1/4/2026
0.1.51 85 1/2/2026
0.1.50 403 11/18/2025
0.1.27 145 8/16/2025
0.1.26 190 8/14/2025
0.1.25 291 7/26/2025
0.1.24 296 7/26/2025
0.1.23 336 7/26/2025
0.1.22 324 7/26/2025
0.1.21 323 7/26/2025
0.1.20 533 7/21/2025
0.1.19 523 7/21/2025
0.1.18 360 7/20/2025
0.1.17 161 6/27/2025
0.1.16 208 6/17/2025
0.1.15 186 6/17/2025
0.1.14 190 6/16/2025
0.1.13 190 6/16/2025
0.1.12 190 6/16/2025
0.1.11 186 6/16/2025
0.1.10 231 6/16/2025
0.1.9 143 6/6/2025
0.1.8 196 5/28/2025
0.1.7 196 5/27/2025
0.1.6 198 5/26/2025
0.1.5 196 5/26/2025
0.1.4 195 5/26/2025
0.1.3 195 5/26/2025
0.1.2 157 5/26/2025
0.1.1 154 5/25/2025
0.1.0 159 5/25/2025
0.0.41 593 2/5/2025
0.0.40 162 2/5/2025
0.0.39 161 2/5/2025
0.0.38 168 2/5/2025
0.0.37 204 2/5/2025
0.0.36 160 2/5/2025
0.0.34 183 2/1/2025
0.0.33 171 2/1/2025
0.0.32 163 1/30/2025
0.0.30 204 5/20/2024
0.0.23 184 5/20/2024
0.0.21 194 5/16/2024
0.0.18 187 5/15/2024
0.0.17 174 5/15/2024
0.0.15 189 5/14/2024
0.0.14 173 5/12/2024
0.0.13 148 5/11/2024