public BaseLegacyRenewalService(
     LegacySettingsService settings,
     ILogService log)
 {
     _log        = log;
     _configPath = settings.Client.ConfigurationPath;
 }
 public RegistryLegacyRenewalService(
     ILogService log,
     MainArguments main,
     LegacySettingsService settings) :
     base(settings, log)
 {
     if (main.BaseUri == null)
     {
         throw new InvalidOperationException("Missing main.BaseUri");
     }
     _baseUri = main.BaseUri;
     _hive    = $"HKEY_CURRENT_USER{Key}";
     if (Registry.GetValue(_hive, _renewalsKey, null) == null)
     {
         _hive = $"HKEY_LOCAL_MACHINE{Key}";
     }
     _log.Debug("Read legacy renewals from registry {_registryHome}", _hive);
 }
 public LegacyTaskSchedulerService(LegacySettingsService settings, MainArguments main, ILogService log)
 {
     _options  = main;
     _settings = settings;
     _log      = log;
 }
 public FileLegacyRenewalService(
     ILogService log,
     LegacySettingsService settings) : base(settings, log)
 {
 }