Exemplo n.º 1
0
 public Repo1ClientBase1(string configKey, int checkIntervalMins)
 {
     _cfgKey                    = configKey;
     _cfg                       = ParseDownloaderCfg(configKey);
     _intervalMins              = checkIntervalMins;
     _validr                    = GetClientValidator();
     _postr                     = GetPosterClient();
     _updatr                    = GetLocalFileUpdater(configKey);
     _sessionr                  = GetSessionClient(checkIntervalMins);
     _downloadr                 = GetDownloadClient();
     _sessionr.PropertyChanged += (s, e) =>
     {
         if (e.PropertyName == nameof(_sessionr.Status))
         {
             Status = _sessionr.Status;
         }
     };
 }
Exemplo n.º 2
0
 public DownloaderClient1(DownloaderCfg downloaderCfg) : base(downloaderCfg)
 {
     _dCfg   = downloaderCfg;
     OnError = ex => Warn(ex.Info(true, true));
 }