Пример #1
0
        //Hacking asynchronous file IO just to make the interface consistent - there's not much performance benefit otheriwse
        public override IAsyncResult BeginDownloadXml(Uri feeduri, AsyncCallback callback)
        {
            if (!this.PingFeed(feeduri))
            {
                throw new MissingFeedException(string.Format("Was unable to open local XML file {0}", feeduri.LocalPath));
            }

            return(FeedWorkerDelegate.BeginInvoke(feeduri, callback, new FeedTuple()));
        }