From b3defa42249836c54820d097c04c6f2ba1d866c1 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 12 Feb 2021 16:58:00 -0600 Subject: docs --- src/slskd/Common/Configuration/CommandLineConfigurationSource.cs | 7 +++++-- src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs | 2 +- .../Common/Configuration/EnvironmentVariableConfigurationSource.cs | 6 ++---- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs b/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs index 28d9907d..6cf59808 100644 --- a/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs +++ b/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs @@ -32,7 +32,7 @@ namespace slskd.Configuration /// Adds a command line argument configuration soruce to . /// /// The to which to add. - /// The type from which to map property values. + /// The type from which to map properties. /// The command line string from which to parse arguments. /// The updated . public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Type targetType, string commandLine = null) @@ -85,7 +85,7 @@ namespace slskd.Configuration private Type TargetType { get; set; } /// - /// Parses command line arguments from the specified string and maps them to the specified keys. + /// Parses command line arguments from the specified string and maps them to the corresponding keys. /// public override void Load() { @@ -142,6 +142,9 @@ namespace slskd.Configuration /// public string CommandLine { get; set; } + /// + /// Gets or sets the type from which to map properties. + /// public Type TargetType { get; set; } /// diff --git a/src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs b/src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs index 8db204a2..15cf4070 100644 --- a/src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs +++ b/src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs @@ -80,7 +80,7 @@ namespace slskd.Configuration private Type TargetType { get; set; } /// - /// Sets loads default values from the specified . + /// Loads default values from the specified and maps them to the corresponding keys. /// public override void Load() { diff --git a/src/slskd/Common/Configuration/EnvironmentVariableConfigurationSource.cs b/src/slskd/Common/Configuration/EnvironmentVariableConfigurationSource.cs index d983e6b0..9a09d4e1 100644 --- a/src/slskd/Common/Configuration/EnvironmentVariableConfigurationSource.cs +++ b/src/slskd/Common/Configuration/EnvironmentVariableConfigurationSource.cs @@ -18,10 +18,8 @@ namespace slskd.Configuration { using System; - using System.Collections.Generic; using System.Linq; using System.Reflection; - using System.Text.Json; using Microsoft.Extensions.Configuration; using Utility.EnvironmentVariables; @@ -34,7 +32,7 @@ namespace slskd.Configuration /// Adds an environment variable configuration source to . /// /// The to which to add. - /// The type from which to map property values. + /// The type from which to map properties. /// A prefix to prepend to all variable names. /// The updated . public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder builder, Type targetType, string prefix = null) @@ -87,7 +85,7 @@ namespace slskd.Configuration private string Prefix { get; set; } /// - /// Loads environment variables and maps them to the specified keys. + /// Loads environment variables and maps them to the corresponding keys. /// public override void Load() { -- cgit v1.2.3