static bool checkForUpdate(FileInfo fileInfo, Uri uri) { // Build the update information. Update update = new Update(fileInfo, uri); Console.WriteLine("Check {1} for updates on {0}...", fileInfo.Name, uri); update.Check(); Console.WriteLine("Status of {0} is {1}", fileInfo.Name, update.Action); return update.Exception == null && (update.Action == UpdateAction.None || update.Action == UpdateAction.Update); }
public UpdateException(Update update, string message) : base(message) { this.Update = update; }
public UpdateException(Update update, string message, Exception innerException) : base(message, innerException) { this.Update = update; }
public UpdateException(Update update) : base() { this.Update = update; }