Klyroo.UI.Server
0.1.0-preview.2
dotnet add package Klyroo.UI.Server --version 0.1.0-preview.2
NuGet\Install-Package Klyroo.UI.Server -Version 0.1.0-preview.2
<PackageReference Include="Klyroo.UI.Server" Version="0.1.0-preview.2" />
<PackageVersion Include="Klyroo.UI.Server" Version="0.1.0-preview.2" />
<PackageReference Include="Klyroo.UI.Server" />
paket add Klyroo.UI.Server --version 0.1.0-preview.2
#r "nuget: Klyroo.UI.Server, 0.1.0-preview.2"
#:package Klyroo.UI.Server@0.1.0-preview.2
#addin nuget:?package=Klyroo.UI.Server&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Klyroo.UI.Server&version=0.1.0-preview.2&prerelease
Klyroo.UI.Server
The server side of Klyroo.UI, for apps that render on an ASP.NET Core server (static server rendering, Interactive Server and Auto prerendering).
A component that renders for a request and has no browser yet, in a static render or a prerender, can read what the browser
left in a cookie, such as a time zone. Klyroo.UI is also loaded by WebAssembly and MAUI apps, where there is no ASP.NET Core
request, so it only knows the abstraction IKlyRequestCookies. This package implements it over IHttpContextAccessor.
dotnet add package Klyroo.UI.Server --prerelease
using Klyroo.UI;
using Klyroo.UI.Server;
// Program.cs of the server project, not the client project of a WebAssembly or Auto app
builder.Services.AddKlyrooUi();
builder.Services.AddKlyrooServer();
AddKlyrooServer() calls AddHttpContextAccessor() and registers IKlyRequestCookies. Without it nothing breaks: components
keep their defaults until the browser is interactive. An interactive render after a prerender has no HTTP request, so
IKlyRequestCookies.Get returns null there.
Because a page that reads a request cookie produces HTML shaped for that user, Get marks the response Cache-Control: private
(unless private or no-store is already set) and adds Cookie to Vary. If your own middleware manages caching headers, turn
this off with AddKlyrooServer(options => options.SetCacheHeaders = false).
The package has the same version as Klyroo.UI and depends on exactly that version. See the repository README.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net11.0 is compatible. |
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 |
|---|---|---|
| 0.1.0-preview.2 | 39 | 11/29/2026 |
| 0.1.0-preview.1 | 37 | 11/29/2026 |
See CHANGELOG.md in the Klyroo.UI package.