Zonit.Extensions.Abstractions 0.1.50

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

Useful tools for Blazor

Extensions:

Nuget Package Abstraction

Install-Package Zonit.Extensions.Website.Abstractions 

Nuget Package Extensions

Install-Package Zonit.Extensions.Website

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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

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
10.0.0-preview.1 70 5/8/2026
0.2.12 166 5/8/2026
0.2.11 3,038 4/19/2026
0.2.10 2,430 1/22/2026
0.2.9 444 1/21/2026
0.2.8 657 1/21/2026
0.2.7 2,248 1/16/2026
0.2.6 149 1/15/2026
0.2.4 159 1/15/2026
0.2.3 163 1/15/2026
0.2.2 145 1/15/2026
0.2.1 192 1/11/2026
0.2.0 146 1/11/2026
0.1.54 197 1/6/2026
0.1.53 201 1/4/2026
0.1.52 148 1/4/2026
0.1.51 176 1/2/2026
0.1.50 465 11/18/2025
0.1.27 215 8/16/2025
0.1.26 243 8/14/2025
Loading failed