From 94c6943c23e6b3c6cb6efb8a8ca45055b9153d58 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 29 Jan 2026 08:03:42 -0600 Subject: more docs --- src/slskd/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/slskd/Program.cs') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 16cfe6c9..143cd460 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -270,6 +270,10 @@ namespace slskd /// An optional exit code. public static void Exit(int code = 1) => Environment.Exit(code); + /// + /// Apply an instance of on top of the existing application configuration. + /// + /// The overlay containing the property values to be overlaid. public static void ApplyConfigurationOverlay(OptionsOverlay overlay) => VolatileOverlayConfigurationSource.Apply(overlay); /// @@ -1285,7 +1289,7 @@ namespace slskd targetType: typeof(Options), multiValuedArguments, commandLine: Environment.CommandLine) - .Add(VolatileOverlayConfigurationSource); + .Add(VolatileOverlayConfigurationSource); // this must come last in order to supersede all other sources } private static IServiceCollection AddDbContext(this IServiceCollection services, string connectionString) -- cgit v1.2.3