aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-01-29 08:03:42 -0600
committerJP Dillingham <jp@dillingham.me>2026-01-29 08:03:42 -0600
commit94c6943c23e6b3c6cb6efb8a8ca45055b9153d58 (patch)
tree94814fd0a272d2dd229fda8aa14691e73407cb2c /src/slskd/Program.cs
parent894458eaa695a44eed02e5c50190326428337cda (diff)
downloadslskd-94c6943c23e6b3c6cb6efb8a8ca45055b9153d58.tar.gz
more docs
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs6
1 files changed, 5 insertions, 1 deletions
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
/// <param name="code">An optional exit code.</param>
public static void Exit(int code = 1) => Environment.Exit(code);
+ /// <summary>
+ /// Apply an instance of <see cref="OptionsOverlay"/> on top of the existing application configuration.
+ /// </summary>
+ /// <param name="overlay">The overlay containing the property values to be overlaid.</param>
public static void ApplyConfigurationOverlay(OptionsOverlay overlay) => VolatileOverlayConfigurationSource.Apply(overlay);
/// <summary>
@@ -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<T>(this IServiceCollection services, string connectionString)