public void AppcastDidFinishLoading(SUAppcast anAppcast)
        {
            if (Updater.Delegate != null) {
                Updater.Delegate.UpdaterDidFinishLoadingAppcast(Updater, anAppcast);
            }

            SUAppcastItem item = null;

            if (Updater.Delegate != null) {
                item = Updater.Delegate.BestValidUpdateInAppcastForUpdater(anAppcast, Updater);
            }

            foreach (SUAppcastItem potentialItem in anAppcast.Items) {
                if (HostSupportsItem(potentialItem)) {
                    item = potentialItem;
                    break;
                }
            }

            updateItem = item;

            if (updateItem == null) {
                DidNotFindUpdate();
                return;
            }

            if (ItemContainsValidUpdate(updateItem)) {
                DidFindValidUpdate();
            } else {
                DidNotFindUpdate();
            }
        }
        public override void CheckForUpdatesAtURLWithHost(string aUrl, SUHost aHost) {
            base.CheckForUpdatesAtURLWithHost(aUrl, aHost);

            SUAppcast appcast = new SUAppcast();
            appcast.Delegate = this;
            appcast.UserAgentString = String.Format("{0}/{1} SparkleDotNET", Host.Name, Host.DisplayVersion);
            appcast.FetchAppcastFromURL(new Uri(aUrl));

        }
        public override void CheckForUpdatesAtURLWithHost(string aUrl, SUHost aHost)
        {
            base.CheckForUpdatesAtURLWithHost(aUrl, aHost);

            SUAppcast appcast = new SUAppcast();

            appcast.Delegate        = this;
            appcast.UserAgentString = String.Format("{0}/{1} SparkleDotNET", Host.Name, Host.DisplayVersion);
            appcast.FetchAppcastFromURL(new Uri(aUrl));
        }
        public void AppcastDidFinishLoading(SUAppcast anAppcast)
        {
            if (Updater.Delegate != null)
            {
                Updater.Delegate.UpdaterDidFinishLoadingAppcast(Updater, anAppcast);
            }

            SUAppcastItem item = null;

            if (Updater.Delegate != null)
            {
                item = Updater.Delegate.BestValidUpdateInAppcastForUpdater(anAppcast, Updater);
            }

            foreach (SUAppcastItem potentialItem in anAppcast.Items)
            {
                if (HostSupportsItem(potentialItem))
                {
                    item = potentialItem;
                    break;
                }
            }

            updateItem = item;

            if (updateItem == null)
            {
                DidNotFindUpdate();
                return;
            }

            if (ItemContainsValidUpdate(updateItem))
            {
                DidFindValidUpdate();
            }
            else
            {
                DidNotFindUpdate();
            }
        }
 public void AppCastFailedToLoadWithError(SUAppcast anAppcast, Exception anError)
 {
     AbortUpdateWithError(anError);
 }
 public void AppCastFailedToLoadWithError(SUAppcast anAppcast, Exception anError)
 {
     AbortUpdateWithError(anError);
 }
 public void AppCastFailedToLoadWithError(SUAppcast anAppcast, Exception anError) {
     KNNotificationCentre.SharedCentre().PostNotificationWithName(SUConstants.SUFeedLoadError, this);
     AbortUpdateWithError(anError);
 }