Esempio n. 1
0
        static ExtensionProviderWrapper()
        {
            var logger = LoggerManager.LoggerFactory.CreateLogger(typeof(ExtensionInstaller).FullName);

            if (!ConfigurationManager.Configuration.GetValue("AutomaticExtensionDownloads", true))
            {
                logger.LogInformation("Automatic extension downloads are disabled.");
            }
            else
            {
                logger.LogInformation("Beginning automatic extension updates.");

                ExtensionInstaller.InstallAsync().Wait();
            }

            ExtensionInstaller.SetLoadComplete();
        }
 static ExtensionProviderWrapper()
 {
     // Ensure this is only called once via the static constructor
     ExtensionInstaller.Download();
 }