RunicToolkit.Hosting.GenericHost 0.1.0-preview.30.1

This is a prerelease version of RunicToolkit.Hosting.GenericHost.
dotnet add package RunicToolkit.Hosting.GenericHost --version 0.1.0-preview.30.1
                    
NuGet\Install-Package RunicToolkit.Hosting.GenericHost -Version 0.1.0-preview.30.1
                    
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="RunicToolkit.Hosting.GenericHost" Version="0.1.0-preview.30.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RunicToolkit.Hosting.GenericHost" Version="0.1.0-preview.30.1" />
                    
Directory.Packages.props
<PackageReference Include="RunicToolkit.Hosting.GenericHost" />
                    
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 RunicToolkit.Hosting.GenericHost --version 0.1.0-preview.30.1
                    
#r "nuget: RunicToolkit.Hosting.GenericHost, 0.1.0-preview.30.1"
                    
#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 RunicToolkit.Hosting.GenericHost@0.1.0-preview.30.1
                    
#: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=RunicToolkit.Hosting.GenericHost&version=0.1.0-preview.30.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RunicToolkit.Hosting.GenericHost&version=0.1.0-preview.30.1&prerelease
                    
Install as a Cake Tool

RunicToolkit.Hosting.GenericHost

This adapter composes Microsoft.Extensions Generic Host with the dependency-neutral RunicToolkit.Hosting lifecycle kernel. It preserves Generic Host configuration, services, and logging access during construction, then returns a single-use RunicToolkitApplication without exposing a service provider.

ApplicationStopping, cancellation, disposal, window close, and mode completion all converge on the kernel-owned stop controller. The optional structured logging sink uses the Hosting event IDs 1100011006 and logs only bounded enum/numeric values and sanitized stable codes. It never logs launch arguments, payloads, asset content, exception messages, or secrets.

The public types remain in the RunicToolkit.Hosting namespace so a consumer moving from an earlier combined assembly only needs to add this adapter package:

var builder = new GenericHostRunicToolkitApplicationBuilder(args);
builder.Services.AddHostedService<MyService>();
builder.Application.AddModeRunner(new MyModeRunner());

await using RunicToolkitApplication application = builder.Build();
return (await application.RunAsync()).ExitCode ?? 0;

Frontend applications normally start from the shared high-level builder:

var builder = WebUiApp.CreateBuilder(args);
builder.Services.AddSingleton<MyApplicationService>();

// A frontend package contributes its own extension members here.
builder.UseMyFrontend(...);

return await builder.RunAsync();

WebUiAppBuilder contains only common Generic Host and lifecycle concerns. Frontend packages use its public feature bag to add strongly typed methods and properties without adding framework dependencies to the shared package.

The complete declared surface is recorded in PUBLIC-API.md.

The package is MIT licensed. Publication still requires package identity and release-readiness review.

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RunicToolkit.Hosting.GenericHost:

Package Downloads
RunicToolkit.Hosting.CsWebUi.App

High-level WebUiApp composition for native CS-WebUI frontends.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.30.1 76 8/11/2026