aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-02-14 21:34:37 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-02-14 21:34:37 -0600
commit879a07cbbb13b7a5667ed0854f2fb9fc2d75d35d (patch)
treea88e96b58a4f506d7bf3db0b7cd6a3c46a4fafc8 /src
parente5a75d5edd90074dc0dddda1e1b8b7d2908498d5 (diff)
downloadslskd-879a07cbbb13b7a5667ed0854f2fb9fc2d75d35d.tar.gz
move xml doc file definition
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Startup.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs
index 7c71a7ec..39b81eea 100644
--- a/src/slskd/Startup.cs
+++ b/src/slskd/Startup.cs
@@ -52,7 +52,6 @@ namespace slskd
/// </summary>
public class Startup
{
- private static readonly string XmlDocFile = Path.Combine(AppContext.BaseDirectory, Program.AppName + ".xml");
private static readonly int MaxReconnectAttempts = 3;
private static int currentReconnectAttempts = 0;
@@ -165,13 +164,13 @@ namespace slskd
Version = "v0",
});
- if (System.IO.File.Exists(XmlDocFile))
+ if (System.IO.File.Exists(Program.DefaultXmlDocumentaitonFile))
{
- options.IncludeXmlComments(XmlDocFile);
+ options.IncludeXmlComments(Program.DefaultXmlDocumentaitonFile);
}
else
{
- logger.Warning($"Unable to find XML documentation in {XmlDocFile}, Swagger will not include metadata");
+ logger.Warning($"Unable to find XML documentation in {Program.DefaultXmlDocumentaitonFile}, Swagger will not include metadata");
}
});
}