/// <summary> /// Provides example code for the LoadAsync(Uri, Object) method /// </summary> public static void LoadAsyncExample() { ApmlDocument document = new ApmlDocument(); document.Loaded += new EventHandler <SyndicationResourceLoadedEventArgs>(ResourceLoadedCallback); document.LoadAsync(new Uri("http://aura.darkstar.sunlabs.com/AttentionProfile/apml/web/Oppositional"), null); }
//============================================================ // ASYNC METHODS //============================================================ /// <summary> /// Provides example code for the LoadAsync(Uri, Object) method /// </summary> public static void LoadAsyncExample() { #region LoadAsync(Uri source, Object userToken) //------------------------------------------------------------ // Load resource asynchronously using event-based notification //------------------------------------------------------------ ApmlDocument document = new ApmlDocument(); document.Loaded += new EventHandler <SyndicationResourceLoadedEventArgs>(ResourceLoadedCallback); document.LoadAsync(new Uri("http://aura.darkstar.sunlabs.com/AttentionProfile/apml/web/Oppositional"), null); #endregion }