From ecc8551fd1797a52b9d9e75e9326560d372c2711 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 13 Jul 2021 08:36:41 -0500 Subject: docs --- src/slskd/Options.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src') diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 2ff0df97..7651d462 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -32,6 +32,39 @@ namespace slskd /// /// Application options. /// + /// + /// + /// This class contains all application options, which may be sourced from (in order of precedence): + /// + /// + /// Defaults + /// Default values, statically defined in this class. + /// + /// + /// Environment Variables + /// Environment variables set at either the system or user scope. + /// + /// + /// YAML Configuration File + /// A YAML file containing a mapping of this class. + /// + /// + /// Command Line + /// Options provided via the command line when starting the application. + /// + /// + /// Higher precedent sources override lower precedent sources. As the command line is the most immediate and final source, + /// options specified via the command line cannot be overwritten at runtime by any other source. + /// + /// + /// Only the YAML configuration source can change at runtime, and consumers of this class must be aware of this, either using + /// in components with a singleton lifetime, or for transient or scoped lifetimes. + /// + /// + /// Options specified via the command line can not be overwritten by changes to the YAML file. This is by design due to the immutable + /// nature of the command line string after the application is started. + /// + /// public class Options { /// -- cgit v1.2.3