Uniform.Matrix.Hosting 0.1.17

There is a newer version of this package available.
See the version list below for details.
dotnet add package Uniform.Matrix.Hosting --version 0.1.17
                    
NuGet\Install-Package Uniform.Matrix.Hosting -Version 0.1.17
                    
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="Uniform.Matrix.Hosting" Version="0.1.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uniform.Matrix.Hosting" Version="0.1.17" />
                    
Directory.Packages.props
<PackageReference Include="Uniform.Matrix.Hosting" />
                    
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 Uniform.Matrix.Hosting --version 0.1.17
                    
#r "nuget: Uniform.Matrix.Hosting, 0.1.17"
                    
#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 Uniform.Matrix.Hosting@0.1.17
                    
#: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=Uniform.Matrix.Hosting&version=0.1.17
                    
Install as a Cake Addin
#tool nuget:?package=Uniform.Matrix.Hosting&version=0.1.17
                    
Install as a Cake Tool

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 through IOptionsMonitor see applied changes.
  • OptionCatalog lists every registered option with its type, default, current value, source and description; SettingsEditor edits them and applies, saves, resets, loads and exports.
  • AppDirectories gives 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.FilePath is 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 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 (5)

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.28 0 11/10/2026
0.1.24 0 11/10/2026
0.1.23 0 11/10/2026
0.1.22 5 11/10/2026
0.1.21 12 11/10/2026
0.1.19 46 11/9/2026
0.1.18 71 11/9/2026
0.1.17 66 11/9/2026
0.1.16 69 11/9/2026
0.1.15 84 11/9/2026
0.1.14-rc5 84 11/9/2026
0.1.14-rc4 93 11/9/2026
0.1.14-rc2 93 11/9/2026
0.1.13 144 10/30/2026
0.1.13-rc5 135 10/30/2026
0.1.13-rc4 126 10/30/2026
0.1.12-rc4 130 10/29/2026
0.1.12-rc1 133 10/29/2026
0.1.11 133 10/29/2026
0.1.10 137 10/29/2026
Loading failed