aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-02-12 16:58:00 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-02-12 16:58:00 -0600
commitb3defa42249836c54820d097c04c6f2ba1d866c1 (patch)
tree87cf2ebed90d3fded902d67ada83a40f75ce7105 /src
parenta1ad9eb42b3261a36a2d15d19e79038efca678d1 (diff)
downloadslskd-b3defa42249836c54820d097c04c6f2ba1d866c1.tar.gz
docs
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Common/Configuration/CommandLineConfigurationSource.cs7
-rw-r--r--src/slskd/Common/Configuration/DefaultValueConfigurationSource.cs2
-rw-r--r--src/slskd/Common/Configuration/EnvironmentVariableConfigurationSource.cs6
3 files changed, 8 insertions, 7 deletions
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 <paramref name="builder"/>.
/// </summary>
/// <param name="builder">The <see cref="IConfigurationBuilder"/> to which to add.</param>
- /// <param name="targetType">The type from which to map property values.</param>
+ /// <param name="targetType">The type from which to map properties.</param>
/// <param name="commandLine">The command line string from which to parse arguments.</param>
/// <returns>The updated <see cref="IConfigurationBuilder"/>.</returns>
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Type targetType, string commandLine = null)
@@ -85,7 +85,7 @@ namespace slskd.Configuration
private Type TargetType { get; set; }
/// <summary>
- /// 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.
/// </summary>
public override void Load()
{
@@ -142,6 +142,9 @@ namespace slskd.Configuration
/// </summary>
public string CommandLine { get; set; }
+ /// <summary>
+ /// Gets or sets the type from which to map properties.
+ /// </summary>
public Type TargetType { get; set; }
/// <summary>
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; }
/// <summary>
- /// Sets loads default values from the specified <see cref="TargetType"/>.
+ /// Loads default values from the specified <see cref="TargetType"/> and maps them to the corresponding keys.
/// </summary>
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 <paramref name="builder"/>.
/// </summary>
/// <param name="builder">The <see cref="IConfigurationBuilder"/> to which to add.</param>
- /// <param name="targetType">The type from which to map property values.</param>
+ /// <param name="targetType">The type from which to map properties.</param>
/// <param name="prefix">A prefix to prepend to all variable names.</param>
/// <returns>The updated <see cref="IConfigurationBuilder"/>.</returns>
public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder builder, Type targetType, string prefix = null)
@@ -87,7 +85,7 @@ namespace slskd.Configuration
private string Prefix { get; set; }
/// <summary>
- /// Loads environment variables and maps them to the specified keys.
+ /// Loads environment variables and maps them to the corresponding keys.
/// </summary>
public override void Load()
{