JGUZDV.Blazor.WasmHost
1.0.0-beta
dotnet add package JGUZDV.Blazor.WasmHost --version 1.0.0-beta
NuGet\Install-Package JGUZDV.Blazor.WasmHost -Version 1.0.0-beta
<PackageReference Include="JGUZDV.Blazor.WasmHost" Version="1.0.0-beta" />
<PackageVersion Include="JGUZDV.Blazor.WasmHost" Version="1.0.0-beta" />
<PackageReference Include="JGUZDV.Blazor.WasmHost" />
paket add JGUZDV.Blazor.WasmHost --version 1.0.0-beta
#r "nuget: JGUZDV.Blazor.WasmHost, 1.0.0-beta"
#:package JGUZDV.Blazor.WasmHost@1.0.0-beta
#addin nuget:?package=JGUZDV.Blazor.WasmHost&version=1.0.0-beta&prerelease
#tool nuget:?package=JGUZDV.Blazor.WasmHost&version=1.0.0-beta&prerelease
JGUZDV.Blazor.WasmServerHost
This package is intended to be used as a helper to configure services and the request
pipeline needed to host a WASM aka Blazor application on an AspNetCore host.
It is compatible with full client side WASM as well as more recent server side rendering with
interactivity via WASM.
It's not intended for Blazor Server applciations, that use SingalR.
Usage
Program.cs
var builder = WebApplicationBuilder.Create(args);
builder.ConfigureWasmHostServices(useInteractiveWebAssembly: true);
var app = builder.Build();
app.ConfigueWasmHost<App>();
app.Run();
or with classic Blazor WASM
Program.cs
var builder = WebApplicationBuilder.Create(args);
builder.ConfigureWasmHostServices(useInteractiveWebAssembly: false);
var app = builder.Build();
app.ConfigueWasmHost();
app.Run();
To use all features, you need to have configuration sections, each referring to a specific feature:
appsettings.json
{
"Logging": {
... // see https://nuget.org/jguzdv/JGUZDV.AspNetCore.Logging
},
"JGUZDV":{
"DataProtection": {
... // see https://nuget.org/jguzdv/JGUZDV.AspNetCore.DataProtection
},
},
"Authentication": {
"OpenIdConnect": { ... },
"Cookies": { ... }
},
"DistributedCache": {
"ConnectionString": "...",
"SchemaName": "...",
"TableName": "..."
},
"ReverseProxy": {
"Proxies": [
{
"PathMatch": "/api/{**catch-all}",
"UpstreamUrl": "https://upstream.example/",
"PathPrefix": "/api",
"UseAccessToken": true
}
]
... // see https://nuget.org/jguzdv/JGUZDV.YARP.SimpleReverseProxy
},
}
| 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 was computed. 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 was computed. 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. |
-
net8.0
- JGUZDV.AspNetCore.Authentication.Cookies (>= 1.0.0)
- JGUZDV.AspNetCore.DataProtection (>= 1.1.1)
- JGUZDV.AspNetCore.Logging (>= 1.0.6)
- JGUZDV.Extensions.Json (>= 1.1.0)
- JGUZDV.YARP.SimpleReverseProxy (>= 1.0.0)
- Microsoft.Extensions.Caching.SqlServer (>= 8.0.0)
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 |
|---|