Saturday, June 24, 2006

Feed Synchronization

The Internet Explorer 7 aggregator (the Feed Download Engine) automatically downloads the feed items from the source URL specified in the feed.
These downloads can occur on a schedule, or as requested by the user. The value of the Interval property and Ttl element of the feed determine how often the feed is downloaded; the feed is updated when the current time is equal to LastDownloadTime plus the maximum of these two values.

The methods and properties that control the download and synchronization behavior of feeds are as follows:

Background Synchronization
FeedsManager.BackgroundSync(action):Possible actions are: Enable, Disable, or RunNow.
FeedsManager.BackgroundSyncStatus:FEEDSBACKGROUNDSYNCSTATUS,
Returns the status (Disabled, Enabled) of the Feed Download Engine.
FeedsManager.DefaultInterval :Integer,Returns, in minutes, the system-defined download interval.
FeedsManager.ItemCountLimit:Integer,Returns the upper limit of items that can be kept.
Feed.DownloadEnclosuresAutomatically:Boolean,Returns true if enclosures are automatically downloaded with the feed.
Feed.Interval:Integer,Returns, in minutes, how frequently the Feed Download Engine should download this feed.
Feed.MaxItemCount:Integer,Returns the number of items to keep when downloading this feed.
Feed.SyncSetting:FEEDS_SYNC_SETTING,Specifies whether to use the local or global interval setting, or disable automatic download entirely.
Feed.Ttl:String,Returns, in minutes, how long the feed should be cached according to the XML of the feed.

Download (On Demand)
Feed.Download:Downloads the feed and merges its contents into the system feed list.
FeedEnclosure.AsyncDownload:Downloads the enclosure.
FeedEnclosure.CancelAsyncDownload:Cancels a download operation in progress.

Success Indicators
Feed.LastDownloadTime:Floating-point number,Returns the date and time of the last successful download.
FeedItem.LastDownloadTime:Floating-point number,Returns the date and time of the last successful update.
Feed.LastDownloadError:FEEDS_DOWNLOAD_ERROR,Returns the download error of the feed, if any.
Feed.DownloadStatus:FEEDS_DOWNLOAD_STATUS,Returns the status of the feed.
FeedEnclosure.LastDownloadError:FEEDS_DOWNLOAD_ERROR,Returns the download error of the enclosure, if any.
FeedEnclosure.DownloadStatus:FEEDS_DOWNLOAD_STATUS,Returns the status of the enclosure.

No comments: