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; } }; }
public DownloaderClient1(DownloaderCfg downloaderCfg) : base(downloaderCfg) { _dCfg = downloaderCfg; OnError = ex => Warn(ex.Info(true, true)); }