Remove Static Configuration Class and .NET Core Prep (#2122)

* Remove static configuration class that required prior knowledge of when it was initialised to dependency injected method that ensures all configuration has already occured.

* Specify a different log name for the updater, require a path when running the Jackett updater

* Update to all .NET Standard packages

* Explicitly specify the restore project style

* Move automapper out of the  DI framework and put crude detection to prevent it from initializing more than once.
This commit is contained in:
Nathan Holland
2017-11-13 21:38:38 +13:00
committed by flightlevel
parent fe504ed660
commit 1c62504b22
34 changed files with 368 additions and 364 deletions

View File

@@ -56,10 +56,10 @@ namespace Jackett.Utils.Clients
var version = Curl.Version;
logger.Info("LibCurl version " + version);
if (!JackettStartup.DoSSLFix.HasValue && version.IndexOf("NSS") > -1)
if (!serverConfig.RuntimeSettings.DoSSLFix.HasValue && version.IndexOf("NSS") > -1)
{
logger.Info("NSS Detected SSL ECC workaround enabled.");
JackettStartup.DoSSLFix = true;
serverConfig.RuntimeSettings.DoSSLFix = true;
}
}