private ProcessStartInfo GetCached()
{
_requirements = new Requirements(Config.SelfUpdateUri, _gui ? Command.NameRunGui : Command.NameRun);
if (_version != null) _requirements.ExtraRestrictions[_requirements.InterfaceUri] = _version;
Solve();
if (FeedManager.ShouldRefresh)
{
try
{
SolveRefresh();
}
catch (WebException ex)
{
Log.Warn("Unable to check for updates");
Log.Warn(ex);
}
}
try
{
Fetch();
}
catch (WebException ex)
{
Log.Warn("Unable to download updates, try to find older version");
Log.Warn(ex);
SolveOffline();
Fetch();
}
return Executor.GetStartInfo(_selections, _targetArgs.ToArray());
}