Beispiel #1
0
        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);
        }
Beispiel #2
0
 public UpdateException(Update update, string message)
     : base(message)
 {
     this.Update = update;
 }
Beispiel #3
0
 public UpdateException(Update update, string message, Exception innerException)
     : base(message, innerException)
 {
     this.Update = update;
 }
Beispiel #4
0
 public UpdateException(Update update)
     : base()
 {
     this.Update = update;
 }