diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-14 21:59:57 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-14 21:59:57 -0600 |
| commit | af1bdbcdafe5d63bfef8fb5f5e85dbc3f2352118 (patch) | |
| tree | d4af69d06dbe4176c1b35c226b7dc44ae1841083 /src/slskd/Startup.cs | |
| parent | 034eff1ad47a4ac976237d4e13c596ba1404cd2f (diff) | |
| parent | 2ce024c3ae28fb9514ba9b62ec228f7238c9124d (diff) | |
| download | slskd-af1bdbcdafe5d63bfef8fb5f5e85dbc3f2352118.tar.gz | |
Merge pull request #41 from slskd/subdirs
Move XML documentation and configuration to subdirectories
Diffstat (limited to 'src/slskd/Startup.cs')
| -rw-r--r-- | src/slskd/Startup.cs | 7 |
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"); } }); } |
