<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Handling Multiple Instances of Module with MEF</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Handling Multiple Instances of Module with MEF</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 18:55:41 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 18:55:41 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>3</c9:totalResults>
	<c9:pageCount>-3</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Handling Multiple Instances of Module with MEF</title>
		<description><![CDATA[<p>We are desinging an LOB application using Silverlgiht 5 ,PRISM 4.1 and MEF as prism's container.</p><p>Issue is</p><p>We desinged a &nbsp;NewOrders module whichc will take New orders. This module Shell has a TabControl with TabItems as&nbsp;SearchCustomerView,CustomerInfoEnter View,CheckCustomersCreditHistory etc.. and all these have their own viewmodels with partcreation policy for views and viewmodels are default&nbsp;<strong>Shared</strong>. CustomerInofEnterViewModel has a Import of ISearchCustomerViewModel, which uses Customerobject(on SearchCustomerViewmodel) if he was found on search screen to fill its screen to save a service call and similarly CheckCustomerCreditHistory uses Customer object on CustomerInforEnterViewmodel to run the check.</p><p>Now that we have requirement of User can place multiple orders? which means we have to create multiple instances on NewOrders Module.</p><p>So we decided to make all views and viewmodels partCreation policy as NonShared ,So all imports have new instances, so SearchCustomerView code behind has a import of IsearchCustomerViewmodel and CustomerInfoViewmodel has a import of SearchCustomerViewmodel and both are diffrent and i cannot share information accross other viewmodel's</p><p>How can I handle this situation?</p><p>&nbsp;</p><p>Any help ideas are greatly appreciated.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/ea81d511d90d43e0be8ca07c00df2c0b#ea81d511d90d43e0be8ca07c00df2c0b</link>
		<pubDate>Tue, 26 Jun 2012 13:32:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/ea81d511d90d43e0be8ca07c00df2c0b#ea81d511d90d43e0be8ca07c00df2c0b</guid>
		<dc:creator>gerrard575</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/gerrard575/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Handling Multiple Instances of Module with MEF</title>
		<description><![CDATA[<p>Research ExportFactories in MEF...</p><p><a href="http://msdn.microsoft.com/en-us/magazine/gg535672.aspx">http://msdn.microsoft.com/en-us/magazine/gg535672.aspx</a></p><p><a href="http://www.codeproject.com/Articles/366583/MEF-2-Preview-Beginners-Guide">http://www.codeproject.com/Articles/366583/MEF-2-Preview-Beginners-Guide</a></p><p>...you will not get a new instance each time when&nbsp;pulling from&nbsp;Lazy&lt;T&gt;...</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/8a1b1f0bba2d453ca47da07c010457a8#8a1b1f0bba2d453ca47da07c010457a8</link>
		<pubDate>Tue, 26 Jun 2012 15:47:52 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/8a1b1f0bba2d453ca47da07c010457a8#8a1b1f0bba2d453ca47da07c010457a8</guid>
		<dc:creator>JohnAskew</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnAskew/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Handling Multiple Instances of Module with MEF</title>
		<description><![CDATA[<p><a href="http://blogs.msdn.com/b/bclteam/archive/2011/11/17/exportfactory-amp-lt-t-amp-gt-in-mef-2-alok.aspx">http://blogs.msdn.com/b/bclteam/archive/2011/11/17/exportfactory-amp-lt-t-amp-gt-in-mef-2-alok.aspx</a></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/b3f1b6071a2c4e9d945da07c01078c61#b3f1b6071a2c4e9d945da07c01078c61</link>
		<pubDate>Tue, 26 Jun 2012 15:59:33 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/b3f1b6071a2c4e9d945da07c01078c61#b3f1b6071a2c4e9d945da07c01078c61</guid>
		<dc:creator>JohnAskew</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnAskew/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>