示例#1
0
        /// <summary>
        /// Provides example code for the LoadAsync(Uri, Object) method
        /// </summary>
        public static void LoadAsyncExample()
        {
            AtomEntry entry = new AtomEntry();

            entry.Loaded += new EventHandler <SyndicationResourceLoadedEventArgs>(EntryLoadedCallback);

            entry.LoadAsync(new Uri("http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=Argotic&DownloadId=28707"), null);
        }
示例#2
0
        //============================================================
        //	ASYNC METHODS
        //============================================================
        /// <summary>
        /// Provides example code for the LoadAsync(Uri, Object) method
        /// </summary>
        public static void LoadAsyncExample()
        {
            #region LoadAsync(Uri source, Object userToken)
            //------------------------------------------------------------
            //	Load entry asynchronously using event-based notification
            //------------------------------------------------------------
            AtomEntry entry = new AtomEntry();

            entry.Loaded += new EventHandler <SyndicationResourceLoadedEventArgs>(EntryLoadedCallback);

            entry.LoadAsync(new Uri("http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=Argotic&DownloadId=28707"), null);
            #endregion
        }