<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : xap files composition</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : xap files composition</description>
  <pubDate>Fri, 10 Apr 2026 22:18:40 -700</pubDate>
  <lastBuildDate>Mon, 02 Apr 2012 11:17:44 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3370</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>xap files composition :   Originally posted by illidanAddXap...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13193#13193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 11:17am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by illidan</strong></em><br /><br />AddXap exist from the beginning in MEF. The question is, do I have to implement the code which is going to configuration file, loads all file names and passing them to AddXap method, or coctail team provide something like this out of box.</td></tr></table><br>No, there isn't currently anything prebuilt to eager load your modules based on a configuration file. AddXap provides the low level functionality of loading the XAP, that goes further than the standard MEF DeploymentCatalog. With Composition.AddXap you can actually have entire new domain models in the XAP you are loading and they get properly discovered and initialized. It also makes sure that the underlying ViewLocator is made aware of the new assemblies that might contain views.<div></div><br>Cocktail follows the convention-over-configuration principal. We rarely eager load modules. The application logic/flow should be in charge of loading a XAP when it's actually needed and not way in advance when it might never be used.<div></div><br>Having said that, occasionally the need arises to eager load certain modules during startup, but Cocktail currently leaves that up to the developer for how she wants to do this. The hooks are there. For example you can overload FrameworkBootstrapper.StartRuntimeAsync to perform the eager loading as part of the application's bootstrapping.<br><br><div></div><div></div>Just keep in mind that eager loading anything delays the application startup. Breaking an application into multiple XAPs is intended to speed up said startup and reduce the initial download size. Eager loading the modules kinda defeats that and the more XAPs you eager load the higher the overhead due to the multiple downloads that get initiated. It generally leads to a better user experience to defer loading. You could load in the background, but then you have to implement ugly logic that prevents the user from entering a certain module until it's loaded completely.<div></div><br>Just a few thoughts to ponder.<span style="font-size:10px"><br /><br />Edited by DFFadmin - 02-Apr-2012 at 11:45am</span>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 11:17:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13193#13193</guid>
  </item> 
  <item>
   <title>xap files composition : Essentially all you need to do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13187#13187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 8:29am<br /><br />Essentially all you need to do is call Composition.AddXap<br><br>See this article for more information http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-dynamic-xap<br>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 08:29:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13187#13187</guid>
  </item> 
  <item>
   <title>xap files composition : AddXapexist from the beginning...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13186#13186</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1430" rel="nofollow">illidan</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 6:23am<br /><br /><span style=": rgb251, 251, 253; text-align: left; ">AddXap&nbsp;exist from the beginning in MEF. The question is, do I have to implement the code which is going to configuration file, loads all file names and passing them to&nbsp;</span>&nbsp;<span style=": rgb251, 251, 253; text-align: left; ">AddXap</span><span style=": rgb251, 251, 253; text-align: left; ">&nbsp;method, or coctail team provide something like this out of box.</span>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 06:23:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13186#13186</guid>
  </item> 
  <item>
   <title>xap files composition : in Coktail, you can use the static...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13184#13184</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 5:52am<br /><br />in Coktail, you can use the static method AddXap method from the composition class.&nbsp;<div>All the logic is already implemented by Devforce and cocktail.&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 05:52:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13184#13184</guid>
  </item> 
  <item>
   <title>xap files composition : P.S. It is a Silverlight application.P.P.S....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13183#13183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1430" rel="nofollow">illidan</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 5:35am<br /><br />P.S. It is a Silverlight application.<div>P.P.S. You have a bug in you forum, in counting views of topic. Going into the topic and back keeps the count increase.</div>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 05:35:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13183#13183</guid>
  </item> 
  <item>
   <title>xap files composition : Hello,In my application I want...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13182#13182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1430" rel="nofollow">illidan</a><br /><strong>Subject:</strong> 3370<br /><strong>Posted:</strong> 02-Apr-2012 at 5:30am<br /><br />Hello,<div>In my application I want to create several&nbsp;independent modules (in different assemblies), and load all of them during application startup. Most (if not all) composition frameworks allow to specify list of the parts in some kind of configuration file. My question is: how I do that in coctail? Do you have something ready to use, or i have to implement this functionality by myself?</div><div><br></div><div>Thanks in advance.</div>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 05:30:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3370&amp;PID=13182#13182</guid>
  </item> 
 </channel>
</rss>