Uniform.Matrix.Hosting
0.1.28
See the version list below for details.
dotnet add package Uniform.Matrix.Hosting --version 0.1.28
NuGet\Install-Package Uniform.Matrix.Hosting -Version 0.1.28
<PackageReference Include="Uniform.Matrix.Hosting" Version="0.1.28" />
<PackageVersion Include="Uniform.Matrix.Hosting" Version="0.1.28" />
<PackageReference Include="Uniform.Matrix.Hosting" />
paket add Uniform.Matrix.Hosting --version 0.1.28
#r "nuget: Uniform.Matrix.Hosting, 0.1.28"
#:package Uniform.Matrix.Hosting@0.1.28
#addin nuget:?package=Uniform.Matrix.Hosting&version=0.1.28
#tool nuget:?package=Uniform.Matrix.Hosting&version=0.1.28
Uniform.Matrix.Hosting
Settings and logging for applications on the .NET generic host: a user settings file between appsettings.json and the command line, a catalog of every option with its description, an editor that applies or saves changes, and one log file per session.
dotnet add package Uniform.Matrix.Hosting
Set up
using Microsoft.Extensions.Hosting;
using Uniform.Matrix.Hosting;
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.AddSettings();
builder.Services.AddOptionSection<PlayerOptions>(builder.Configuration, PlayerOptions.Section);
builder.AddSessionLogging(Path.Combine(AppDirectories.Data(builder.Environment.ApplicationName), "logs"), keep: 20);
Options are plain records; their XML doc comments become the descriptions in the catalog.
/// <summary>Playback settings, configuration section <see cref="Section"/>.</summary>
public sealed record PlayerOptions
{
public const string Section = "Player";
/// <summary>Volume from 0 to 10.</summary>
public int Volume { get; set; } = 5;
/// <summary>Output device; read at start only.</summary>
[RestartRequired]
public string? Device { get; set; }
/// <summary>Account password; never shown or saved.</summary>
[Secret]
public string? Password { get; set; }
}
What you get
- Configuration layers, lowest first:
appsettings.json, the settings file~/.config/<app>/settings.json(under$XDG_CONFIG_HOME), environment variables, the command line, then changes applied at run time. Options read throughIOptionsMonitorsee applied changes. OptionCataloglists every registered option with its type, default, current value, source and description;SettingsEditoredits them and applies, saves, resets, loads and exports.AppDirectoriesgives XDG data and config folders named after the application, e.g.~/.local/share/my-app.- Session logs keep the newest files and remove older ones at start;
FileLoggerProvider.FilePathis the current one.
For a terminal UI over these, see Uniform.Matrix.Gui.Terminal.
About
Part of Uniform.Matrix, a pure .NET implementation of the Matrix specification. Version 0.1 is an early pre-release: APIs may still change.
| 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. |
-
net10.0
- Microsoft.Extensions.Hosting (>= 10.0.12)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Uniform.Matrix.Hosting:
| Package | Downloads |
|---|---|
|
Uniform.Matrix.Client
Matrix client engine with local SQLite storage: session, sync, outbox, media cache, encryption and room state. |
|
|
Uniform.Matrix.Server
Matrix homeserver engine on ASP.NET Core and SQLite: accounts, rooms, sync, media, the end-to-end encryption relay and the room directory. Add it with AddMatrixServer and MapMatrixServer. |
|
|
Uniform.Matrix.Gui.Terminal
Terminal.Gui components for host applications: settings window, log window and dialogs. |
|
|
Uniform
Package aggregation for server packages: one reference brings in the Uniform.Matrix homeserver engine and its hosting, the Uniform.Turn STUN and TURN server with its hosting, and the packages that join them later. |
|
|
Uniform.Stun.Hosting
Runs the Uniform.Turn STUN and TURN server in a .NET host: settings in section Turn, credentials from shared secrets, fixed users or the host, TLS certificates from PEM files that renew without a restart. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.38 | 0 | 11/11/2026 |
| 0.1.37 | 0 | 11/11/2026 |
| 0.1.35 | 0 | 11/11/2026 |
| 0.1.33 | 0 | 11/11/2026 |
| 0.1.31 | 0 | 11/11/2026 |
| 0.1.30 | 0 | 11/11/2026 |
| 0.1.29 | 0 | 11/11/2026 |
| 0.1.28 | 7 | 11/10/2026 |
| 0.1.24 | 55 | 11/10/2026 |
| 0.1.23 | 53 | 11/10/2026 |
| 0.1.22 | 68 | 11/10/2026 |
| 0.1.21 | 60 | 11/10/2026 |
| 0.1.19 | 65 | 11/9/2026 |
| 0.1.18 | 89 | 11/9/2026 |
| 0.1.17 | 82 | 11/9/2026 |
| 0.1.16 | 86 | 11/9/2026 |
| 0.1.15 | 101 | 11/9/2026 |
| 0.1.14-rc5 | 102 | 11/9/2026 |
| 0.1.14-rc4 | 109 | 11/9/2026 |