Zonit.Extensions.Website.Abstractions
0.1.9
dotnet add package Zonit.Extensions.Website.Abstractions --version 0.1.9
NuGet\Install-Package Zonit.Extensions.Website.Abstractions -Version 0.1.9
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.Abstractions" Version="0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zonit.Extensions.Website.Abstractions" Version="0.1.9" />
<PackageReference Include="Zonit.Extensions.Website.Abstractions" />
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.Abstractions --version 0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Zonit.Extensions.Website.Abstractions, 0.1.9"
#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.
#addin nuget:?package=Zonit.Extensions.Website.Abstractions&version=0.1.9
#tool nuget:?package=Zonit.Extensions.Website.Abstractions&version=0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Useful tools for Blazor
Extensions:
- Zonit.Extensions.Reflection - A utility class for discovering assemblies and types that implement or inherit from a specified base type.
- Zonit.Extensions.Xml - A utility class for serializing objects to XML and deserializing XML back to objects using .NET's XML serialization.
- Zonit.Extensions.Website.Components
Nuget Package Abstraction
Install-Package Zonit.Extensions.Website.Abstractions
Nuget Package Extensions
Install-Package Zonit.Extensions.Website
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. |
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 (1)
Showing the top 1 NuGet packages that depend on Zonit.Extensions.Website.Abstractions:
Package | Downloads |
---|---|
Zonit.Extensions.Website
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.9 | 83 | 6/6/2025 |
0.1.8 | 142 | 5/28/2025 |
0.1.7 | 140 | 5/27/2025 |
0.1.6 | 142 | 5/26/2025 |
0.1.5 | 141 | 5/26/2025 |
0.1.4 | 140 | 5/26/2025 |
0.1.3 | 141 | 5/26/2025 |
0.1.2 | 128 | 5/26/2025 |
0.1.1 | 134 | 5/25/2025 |
0.1.0 | 137 | 5/25/2025 |
0.0.41 | 361 | 2/5/2025 |
0.0.40 | 114 | 2/5/2025 |
0.0.39 | 106 | 2/5/2025 |
0.0.38 | 115 | 2/5/2025 |
0.0.37 | 133 | 2/5/2025 |
0.0.36 | 108 | 2/5/2025 |
0.0.34 | 124 | 2/1/2025 |
0.0.33 | 125 | 2/1/2025 |
0.0.32 | 118 | 1/30/2025 |
0.0.30 | 153 | 5/20/2024 |
0.0.23 | 130 | 5/20/2024 |
0.0.21 | 143 | 5/16/2024 |
0.0.18 | 141 | 5/15/2024 |
0.0.17 | 140 | 5/15/2024 |
0.0.15 | 137 | 5/14/2024 |
0.0.14 | 128 | 5/12/2024 |
0.0.13 | 127 | 5/11/2024 |