<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Silverlight for Business</title>
	<atom:link href="http://silverlightforbusiness.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://silverlightforbusiness.net</link>
	<description>Bringing Silverlight to the Enterprise</description>
	<lastBuildDate>Thu, 01 Oct 2009 08:45:22 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='silverlightforbusiness.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/98e6239e13bc89023c26c53413ea95ab?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Silverlight for Business</title>
		<link>http://silverlightforbusiness.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://silverlightforbusiness.net/osd.xml" title="Silverlight for Business" />
		<item>
		<title>Follow-up from Silverlight User Group Talk</title>
		<link>http://silverlightforbusiness.net/2009/09/30/follow-up-from-silverlight-user-group-talk/</link>
		<comments>http://silverlightforbusiness.net/2009/09/30/follow-up-from-silverlight-user-group-talk/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 08:40:51 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight User Group UK (SLUGUK)]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/09/30/follow-up-from-silverlight-user-group-talk/</guid>
		<description><![CDATA[Thanks everyone who attended my talk at the Silverlight User Group last night.  I really enjoyed myself and was glad to see a hearty discussion around RIA services – which is surely the point of these sorts of events; to get everyone thinking and get the dialog going.
You can download my presentations from here: http://bit.ly/SlugSep09IB 
Ria [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=72&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Thanks everyone who attended my talk at the Silverlight User Group last night.  I really enjoyed myself and was glad to see a <em>hearty discussion</em> around RIA services – which is surely the point of these sorts of events; to get everyone thinking and get the dialog going.</p>
<p>You can download my presentations from here: <a title="http://bit.ly/SlugSep09IB" href="http://bit.ly/SlugSep09IB">http://bit.ly/SlugSep09IB</a> </p>
<h2>Ria Services</h2>
<p> </p>
<p>If you want to find out more about Ria Services then <a href="http://blogs.msdn.com/brada" target="_blank">Brad Adams</a> is the person to go to – if you haven’t seen his blog series that followed on from his Mix09 series then check that out now; it consists of &gt;20 posts covering everything from using a ViewModel,  azure, authentication, multiple clients and data sources, SEO, Unit testing and much more.  And it’s ongoing with promises of new posts on modular development (will be interesting to see how that relates to Prism).  He has a summary of the current posts here: <a title="http://blogs.msdn.com/brada/archive/2009/08/02/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-summary.aspx" href="http://blogs.msdn.com/brada/archive/2009/08/02/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-summary.aspx">http://blogs.msdn.com/brada/archive/2009/08/02/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-summary.aspx</a>.</p>
<h2><a href="http://silverlightpulse.net" target="_blank">SilverlightPulse.net</a></h2>
<p> </p>
<p>I have placed the app on <a title="http://silverlightpulse.codeplex.com/" href="http://silverlightpulse.codeplex.com/">http://silverlightpulse.codeplex.com/</a>  &#8211; if you haven’t used codeplex before it is Microsoft’s Open source repository – you can use a range of clients such as svn, team system etc to work with the source.  I have published under the Microsoft Public License (Ms-PL) which is the most permissive Open Souce MS license as I understand it</p>
<p>Anyone who is interested in helping out please get in touch (<a href="mailto:Ian@bbits.co.uk">Ian@bbits.co.uk</a>) – it would be really great to take this app and make it a great showcase for members of the Silverlight User Group in the UK.  There are lots of things we could explore both functionally (eg wordle maps, integrating other network api’s such as friendfeed, using the silverlight bing map), and technically (using Prism for modularity seems like a great fit, having more server processing to aggregate data for all perhaps (instead of doing the work on the client), adopting MVVM,  are a few that come to mind.  I actually think this could develop into something really interesting and I am sure there will be many ideas from the community that could be used.  Get your thinking caps on and get in touch – please <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers</p>
<p>Ian</p>
<p> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b7a94733-4bd0-4254-898a-5c880e4cf868" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Silverlight">Silverlight</a>,<a rel="tag" href="http://technorati.com/tags/sluguk">sluguk</a>,<a rel="tag" href="http://technorati.com/tags/silverlightpulse">silverlightpulse</a>,<a rel="tag" href="http://technorati.com/tags/ria+services">ria services</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=72&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/09/30/follow-up-from-silverlight-user-group-talk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>
	</item>
		<item>
		<title>I am talking at the UK Silverlight User Group tonight</title>
		<link>http://silverlightforbusiness.net/2009/09/29/i-am-talking-at-the-uk-silverlight-user-group-tonight/</link>
		<comments>http://silverlightforbusiness.net/2009/09/29/i-am-talking-at-the-uk-silverlight-user-group-tonight/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 10:06:40 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/09/29/i-am-talking-at-the-uk-silverlight-user-group-tonight/</guid>
		<description><![CDATA[I am chuffed to be talking at the user group meeting tonight, along with Ian Smith.
Details here
I will be talking about two things :
Silverlightpulse.net
This was the micro app I created before the Mix 09 conference in anticipation for the Silverlight 3 announcements and why I was originally invited to talk at the user group meeting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=71&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>I am chuffed to be talking at the user group meeting tonight, along with <a href="http://twitter.com/irascian" target="_blank">Ian Smith</a>.</p>
<p>Details <a href="http://consultingblogs.emc.com/markmann/archive/2009/08/28/silverlight-uk-user-group-9-agenda.aspx" target="_blank">here</a></p>
<p>I will be talking about two things :</p>
<h2><a href="http://silverlightpulse.net" target="_blank">Silverlightpulse.net</a></h2>
<p>This was the micro app I created before the Mix 09 conference in anticipation for the Silverlight 3 announcements and why I was originally invited to talk at the user group meeting (it’s a bit of a long story as to why it has taken so long for that to actually materialize – filled with stories of product launches and twisted ankles!).&#160; </p>
<p>I still think this is a very interesting app though, and has some potential that I have yet to realize.&#160; Tonight I will be going into why I think that and asking: “is this a worthwhile community project and who wants to be involved?”</p>
<h2>Using RIA Services with Silverlight</h2>
<p>To me RIA services offer a prescriptive pattern that will be useful for a majority of projects.&#160; ScottGu called out 80% as the take-up figure when he talked about it recently and <a href="http://twitter.com/brada/statuses/4412127833" target="_blank">John Papa said in a recent tweet “I think RIA Services could be the best thing to happen to Silverlight LOB apps”</a>.&#160; I agree, <a href="http://wildermuth.com/2009/09/29/Choosing_a_Data_Access_Layer_for_Silverlight_3" target="_blank">though some may not entirely</a>.&#160; I only have an hour in total this evening but I hope to give a flavour of RIA services and what it can bring to the party.</p>
<p>Hope to see you there!</p>
<p>Cheers</p>
<p>Ian</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:71f45aa8-f3f0-41ff-8d52-8be62e4c0ef6" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/Silverlight" rel="tag">Silverlight</a>,<a href="http://technorati.com/tags/User+Group" rel="tag">User Group</a>,<a href="http://technorati.com/tags/RIA+Services" rel="tag">RIA Services</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=71&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/09/29/i-am-talking-at-the-uk-silverlight-user-group-tonight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>
	</item>
		<item>
		<title>TDD Masterclass Free Draw &#8211; and the winner is&#8230;.</title>
		<link>http://silverlightforbusiness.net/2009/09/02/tdd-masterclass-free-draw-ndash-and-the-winner-ishellip/</link>
		<comments>http://silverlightforbusiness.net/2009/09/02/tdd-masterclass-free-draw-ndash-and-the-winner-ishellip/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 21:16:11 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/09/02/tdd-masterclass-free-draw-ndash-and-the-winner-ishellip/</guid>
		<description><![CDATA[Thanks for everyone who entered the competition for a free ticket for the TDD Masterclass with Roy Osherove, 21-25 September in Kent, UK. 
We had lots of entries and all the names were printed out and put into a bowl and then the winner was picked out at random by my 6 year old daughter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=70&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Thanks for everyone who entered the competition for a free ticket for the <a href="http://bbits.co.uk/tddmasterclass">TDD Masterclass with Roy Osherove, 21-25 September in Kent, UK</a>. </p>
<p>We had lots of entries and all the names were printed out and put into a bowl and then the winner was picked out at random by my 6 year old daughter this evening:</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/09/dsc_6756.jpg"><img style="display:inline;border-width:0;" title="DSC_6756" border="0" alt="DSC_6756" src="http://silverlightforbusiness.files.wordpress.com/2009/09/dsc_6756_thumb.jpg?w=244&#038;h=165" width="244" height="165" /></a> </p>
<p><b>I am pleased to announce that the winner is : Sara Stephens!      <br /></b><a href="http://developerdame.blogspot.com/2009/08/tdd-masterclass-in-uk-free-ticket.html">http://developerdame.blogspot.com/2009/08/tdd-masterclass-in-uk-free-ticket.html</a></p>
<p>Congratulations to Sara!&#160; Sara &#8211; I will send you a separate email with details of your free ticket <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> &#160; It promises to be a fantastic course!</p>
<p>Once again thank you everyone who supported this promotion.</p>
<p>If anyone would still like to come to the course there are still a few places left if you would like to come – please contact me directly if you are interested as soon as possible!</p>
<p>Cheers</p>
<p>Ian</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=70&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/09/02/tdd-masterclass-free-draw-ndash-and-the-winner-ishellip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/09/dsc_6756_thumb.jpg" medium="image">
			<media:title type="html">DSC_6756</media:title>
		</media:content>
	</item>
		<item>
		<title>Bloggers: Win a free place for Roy Osherove&#8217;s TDD Masterclass (worth &#163;2395!)</title>
		<link>http://silverlightforbusiness.net/2009/08/19/bloggers-win-a-free-place-for-roy-osheroves-tdd-masterclass-worth-2395/</link>
		<comments>http://silverlightforbusiness.net/2009/08/19/bloggers-win-a-free-place-for-roy-osheroves-tdd-masterclass-worth-2395/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 08:17:51 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit Tests]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/08/19/bloggers-win-a-free-place-for-roy-osheroves-tdd-masterclass-worth-2395/</guid>
		<description><![CDATA[bbits are giving away a free ticket for Roy Osherove’s TDD Masterclass in September in the uk.
To enter the raffle all you need to do is use the exact text between these lines in your blog post, including all the links, then email Ian@bbits.co.uk with the url to the blog entry.
The draw will be made [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=66&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p><a href="http://www.bbits.co.uk">bbits</a> are giving away a free ticket for Roy Osherove’s TDD Masterclass in September in the uk.</p>
<p>To enter the raffle all you need to do is use the exact text between these lines in your blog post, including all the links, then email <a href="mailto:Ian@bbits.co.uk">Ian@bbits.co.uk</a> with the url to the blog entry.</p>
<p>The draw will be made on September 1st and the winner notified by email and via this blog.</p>
<p>Good Luck!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8211; TEXT STARTS HERE</p>
<p>Roy Osherove is giving an hands-on TDD Masterclass in the UK, September 21-25. Roy is author of &quot;The Art of Unit Testing&quot; (<a href="http://www.artofunittesting.com/">http://www.artofunittesting.com/</a>), a leading tdd &amp; unit testing book; he maintains a blog at <a href="http://iserializable.com">http://iserializable.com</a> (which amoung other things has critiqued tests written by Microsoft for <a href="http://asp.net">asp.net</a> MVC &#8211; check out the testreviews category) and has recently been on the Scott Hanselman podcast (<a href="http://bit.ly/psgYO">http://bit.ly/psgYO</a>) where he educated Scott on best practices in Unit Testing techniques. For a further insight into Roy&#8217;s style, be sure to also check out Roy&#8217;s talk at the recent Norwegian Developer&#8217;s Conference (<a href="http://bit.ly/NuJVa">http://bit.ly/NuJVa</a>).&#160; </p>
<p>Full Details here: <a href="http://bbits.co.uk/tddmasterclass">http://bbits.co.uk/tddmasterclass</a></p>
<p>bbits are holding a raffle for a free ticket for the event. To be eligible to win the ticket (worth £2395!) you MUST paste this text, including all links, into your blog and email <a href="mailto:Ian@bbits.co.uk">Ian@bbits.co.uk</a> with the url to the blog entry.&#160; The draw will be made on September 1st and the winner informed by email and on <a href="http://bbits.co.uk/blog">bbits.co.uk/blog</a> </p>
<p>&#8212;&#8212;&#8212;&#8212;- TEXT ENDS</p>
<p>Cheers</p>
<p>Ian</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:13f7690d-c5bc-4b54-b6db-67cbb8f3c2ce" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/TDD" rel="tag">TDD</a>,<a href="http://technorati.com/tags/Roy+Osherover" rel="tag">Roy Osherover</a>,<a href="http://technorati.com/tags/Unit+Tests" rel="tag">Unit Tests</a>,<a href="http://technorati.com/tags/bbits" rel="tag">bbits</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=66&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/08/19/bloggers-win-a-free-place-for-roy-osheroves-tdd-masterclass-worth-2395/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>
	</item>
		<item>
		<title>New Silverlight 3 Training in the UK</title>
		<link>http://silverlightforbusiness.net/2009/08/15/new-silverlight-3-training-in-the-uk/</link>
		<comments>http://silverlightforbusiness.net/2009/08/15/new-silverlight-3-training-in-the-uk/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 16:07:33 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[Blend 3]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[M-V-VM]]></category>
		<category><![CDATA[PRISM]]></category>
		<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Sketchflow]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/08/15/new-silverlight-3-training-in-the-uk/</guid>
		<description><![CDATA[bbits have produced 2 new Silverlight 3 courses; one targeted at designers, the other at developers building line of business applications.
Both are bang up to date, including Sketchflow and Blend 3 for designers and RIA Services, PRISM and M-V-VM for developers.
Take a look:

Silverlight for Designers with Blend 3
Silverlight for Developers (inc Ria Services, M-V-VM and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=62&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p><a href="http://bbits.co.uk">bbits</a> have produced 2 new Silverlight 3 courses; one targeted at designers, the other at developers building line of business applications.</p>
<p>Both are bang up to date, including Sketchflow and Blend 3 for designers and RIA Services, PRISM and M-V-VM for developers.</p>
<p>Take a look:</p>
<ul>
<li><a href="http://bbits.co.uk/services/training/?57">Silverlight for Designers with Blend 3</a></li>
<li><a href="http://bbits.co.uk/services/training/?47">Silverlight for Developers (inc Ria Services, M-V-VM and PRISM)</a></li>
</ul>
<p>bbits courses can be customised at no extra cost, so if you can’t take the 5 days for the full developers course, you can cherry pick the bits you want and just do them!</p>
<p>Cheers</p>
<p>Ian</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ff1f0722-7076-4f11-aa09-bc570fb21266" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Silverlight">Silverlight</a>,<a rel="tag" href="http://technorati.com/tags/Training">Training</a>,<a rel="tag" href="http://technorati.com/tags/uk">uk</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=62&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/08/15/new-silverlight-3-training-in-the-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>
	</item>
		<item>
		<title>Pushing Data From the Server to Silverlight 3 using a Duplex Wcf Service</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/</link>
		<comments>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 05:32:22 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Duplex]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/</guid>
		<description><![CDATA[During a recent course with Stan James  we discussed how Silverlight 3 could be used with duplex services to push data from the server to the clients; I wanted to produce a simple example of how to do this.  Pushing data this way has a number of benefits:

You reduce the load on the server; instead of multiple clients polling the server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=58&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>During a recent course with <a href="http://www.stanjames.com/">Stan James </a> we discussed how Silverlight 3 could be used with duplex services to push data from the server to the clients; I wanted to produce a simple example of how to do this.  Pushing data this way has a number of benefits:</p>
<ul>
<li>You reduce the load on the server; instead of multiple clients polling the server periodically, we send the data from the server to the clients as and when we want to.</li>
<li>We can eliminate or reduce data lag in time sensitive applications – so as soon as we have the data available we can push it to Silverlight to react to.  This can be very important for applications that need to show data changes as they happen, such as trading systems or perhaps live statistics from sports events such as Formula 1.</li>
<li>All clients receive updates at the same time.</li>
</ul>
<p>There is a nice sample application from Mix09 available <a href="http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=2401">here</a> which creates a chat application as well as an example of a server push.  However I felt a simpler example would have a benefit to many trying to get to grips with this, together with a bit more explanation.  We will however use generic DuplexService class that is created in that project (it would make sense for a class like this to be available in the framework, or at least a template within Visual studio)</p>
<h2>What our application will do</h2>
<p>We want a simple example, and that is what we will get.  The server will periodically push a “LiveData” message to any Silverlight client that has connected, and the client will display it.  I am not concerned how the data gets to the server here, only how to send it out to the client once we have it. </p>
<h2>How the project fits together</h2>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image12.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image_thumb11.png?w=487&#038;h=330" border="0" alt="image" width="487" height="330" /></a></p>
<h2>Creating the Sample</h2>
<h3>Creating the Project</h3>
<p>First create a new Silverlight project; let’s call it DuplexExample – ensure you include a Asp.Net Web Application with the default name (DuplexExample.Web) .  In the <strong>web site</strong> add a reference to the System.ServiceModel.PollingDuplex (make sure you get the correct one – the v3.0 one in the <strong>Server</strong> folder.)</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image30.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image30_thumb.png?w=502&#038;h=218" border="0" alt="image" width="502" height="218" /></a></p>
<p>And in the <strong>Silverlight</strong> project also add a reference to System.ServiceModel.PollingDuplex (but this time in the <strong>Client</strong> folder):</p>
<p> <a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image35.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image35_thumb.png?w=500&#038;h=186" border="0" alt="image" width="500" height="186" /></a></p>
<p>Download the Duplex sample from <a title="http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=2401" href="http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=2401">http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=2401</a>, extract it and grab the <strong>DuplexService.cs</strong> file and drop it into your web site.</p>
<h3>Creating the Service</h3>
<p>Now <em>we could</em> add a Wcf service using Visual Studio templates, but that would actually create a lot of stuff we don’t need which we would just have to delete, so instead just add a text file but call it <strong>LiveDataService.svc</strong> . This will give us a blank file into which you can add the following:</p>
<p><span style="background:#ffee62;">&lt;%</span><span style="color:blue;">@ </span><span style="color:#a31515;">ServiceHost<br />
        </span><span style="color:red;">Language</span><span style="color:blue;">=&#8221;C#&#8221;<br />
        </span><span style="color:red;">Debug</span><span style="color:blue;">=&#8221;true&#8221;<br />
        </span><span style="color:red;">Factory</span><span style="color:blue;">=&#8221;DuplexExample.Web.LiveDataServiceFactory&#8221;<br />
        </span><span style="color:red;">Service</span><span style="color:blue;">=&#8221;DuplexExample.Web.LiveDataService&#8221;<br />
         </span><span style="background:#ffee62;">%&gt;</span></p>
<p><span style="background:#ffee62;"> </span></p>
<ol><a href="http://11011.net/software/vspaste"></a></ol>
<p>The only difference here to the contents of a normal svc file is the fact that there is no CodeBehind value specified and we have explicitly specified a Factory class.  (For more details on these options see here: <a title="http://msdn.microsoft.com/en-us/library/aa967286.aspx" href="http://msdn.microsoft.com/en-us/library/aa967286.aspx">http://msdn.microsoft.com/en-us/library/aa967286.aspx</a>) Since we have specified a LiveDataService for our service and LiveDataServiceFactory class that will be used to instantiate the factory service, we will need to go and create these. </p>
<p>But  before we can do that we need a DataContract class called <strong>LiveDataMessage – </strong>this is the simple class that our service will send to Silverlight.</p>
<p>[<span style="color:#2b91af;">DataContract</span>]<br />
<span style="color:blue;">public class </span><span style="color:#2b91af;">LiveDataMessage</span>: <span style="color:#2b91af;">DuplexMessage<br />
</span>{<br />
    [<span style="color:#2b91af;">DataMember</span>]<br />
    <span style="color:blue;">public int </span>Value { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }<br />
    [<span style="color:#2b91af;">DataMember</span>]<br />
    <span style="color:blue;">public string </span>Description { <span style="color:blue;">get</span>; <span style="color:blue;">set</span>; }<br />
}</p>
<p>Ok so now we can create our “LiveDataService” – add a class to your web site called <strong>LiveDataService.cs</strong>  and add the following code.  This is fairly simple – we are using a Timer to send a message to all clients every 5 seconds:<br />
<span style="color:blue;"> </span></p>
<p><span style="color:blue;">using </span>System;<br />
<span style="color:blue;">using</span>Microsoft.Silverlight.Cdf.Samples.Duplex;<br />
<span style="color:blue;">using</span>System.Threading;</p>
<p><span style="color:blue;">namespace </span>DuplexExample.Web<br />
{<br />
    <span style="color:blue;">public class </span><span style="color:#2b91af;">LiveDataService </span>:<span style="color:#2b91af;">DuplexService<br />
   </span>{<br />
        <span style="color:#2b91af;">Timer </span>liveDataTimer;</p>
<p>        <span style="color:blue;">public </span>LiveDataService()<br />
        {<br />
            <span style="color:green;">//Set up a an update every 5 seconds<br />
           </span><span style="color:blue;">this</span>.liveDataTimer = <span style="color:blue;">new</span><span style="color:#2b91af;">Timer</span>(<span style="color:blue;">new</span><span style="color:#2b91af;">TimerCallback</span>(LiveDataUpdate),<span style="color:blue;">null</span>, 0, 5000);<br />
        }</p>
<p>        <span style="color:blue;">void </span>LiveDataUpdate(<span style="color:blue;">object</span>o)<br />
        {<br />
            <span style="color:#2b91af;">LiveDataMessage </span>liveDataMessage = <span style="color:blue;">new</span><span style="color:#2b91af;">LiveDataMessage</span>()<br />
            {<br />
                Description = <span style="color:#a31515;">&#8220;Live Data at &#8220;</span>+ <span style="color:#2b91af;">DateTime</span>.Now.ToLongTimeString(),<br />
                Value = <span style="color:blue;">new</span><span style="color:#2b91af;">Random</span>().Next(0, 100)<br />
            };<br />
            PushToAllClients(liveDataMessage);<br />
        }<br />
    }<br />
}</p>
<h3>The DuplexService Class</h3>
<p>You will notice that our LiveDataService inherits from the DuplexService we added to our project – this provides all the plumbing work for the duplex service:</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image41.png"><img style="border-bottom:0;border-left:0;display:inline;margin-left:0;border-top:0;margin-right:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image4_thumb.png?w=494&#038;h=243" border="0" alt="image" width="494" height="243" /></a></p>
<p>Crucially this class is also marked with the following attribute, meaning our service can keep track of clients that have connected, because it stays in memory and is not recycled&#8217;:</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image14.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image14_thumb.png?w=488&#038;h=224" border="0" alt="image" width="488" height="224" /></a></p>
<p>Ok – so the DuplexService provides plenty of goodness for free, though there is one thing we need to alter in this file – you may have noticed already that it is not compiling.  Down at the bottom you will see a list of KnownTypes.  These related to the sample project you downloaded and not what we want.  We only have one specific KnownType (apart from the Connect and Disconnect) called LiveDataMessage. </p>
<p><a href="http://11011.net/software/vspaste"></a>So you need to make the following change to the DuplexService.cs file (at the bottom) :</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image39.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image39_thumb.png?w=489&#038;h=255" border="0" alt="image" width="489" height="255" /></a></p>
<ul><a href="http://11011.net/software/vspaste"></a></ul>
<h3>The LiveDataServiceFactory class</h3>
<p>Finally we need to add the <strong>LiveDataServiceFactory </strong>class  &#8211; which inherits from the DataServiceFactory class in the DuplexService.cs file (and in fact that’s all it will do)</p>
<pre class="code"><span style="color:blue;">namespace </span>DuplexExample.Web
{
    <span style="color:blue;">public class </span><span style="color:#2b91af;">LiveDataServiceFactory </span>: <span style="color:#2b91af;">DuplexServiceFactory</span>&lt;<span style="color:#2b91af;">LiveDataService</span>&gt; {}

}</pre>
<p>If you go and look at the DuplexServiceFactory we are inheriting from (again in the DuplexService.cs file) you will see that it provides the configuration for the service with a custom binding (this is an alternative to providing configuration for doing this)</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image26.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image26_thumb.png?w=492&#038;h=223" border="0" alt="image" width="492" height="223" /></a></p>
<p><a href="http://11011.net/software/vspaste"></a></p>
<h2>The Silverlight Project</h2>
<p>Make sure you can build your solution, then add a Service Reference from the Silverlight project to the LiveDataService you have created:</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image22.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image22_thumb.png?w=515&#038;h=484" border="0" alt="image" width="515" height="484" /></a></p>
<p>I created a very simple UI – just a button and a ListBox shown below:</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">Grid </span><span style="color:red;">x</span><span style="color:blue;">:</span><span style="color:red;">Name</span><span style="color:blue;">="LayoutRoot" </span><span style="color:red;">Background</span><span style="color:blue;">="White"&gt;
    &lt;</span><span style="color:#a31515;">Grid.RowDefinitions</span><span style="color:blue;">&gt;
        &lt;</span><span style="color:#a31515;">RowDefinition </span><span style="color:red;">Height</span><span style="color:blue;">="75"/&gt;
        &lt;</span><span style="color:#a31515;">RowDefinition </span><span style="color:red;">Height</span><span style="color:blue;">="225"/&gt;
    &lt;/</span><span style="color:#a31515;">Grid.RowDefinitions</span><span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">Button </span><span style="color:red;">Content</span><span style="color:blue;">="Connect"             </span><span style="color:red;">Click</span><span style="color:blue;">="ButtonConnect_Click"             </span><span style="color:red;">x</span><span style="color:blue;">:</span><span style="color:red;">Name</span><span style="color:blue;">="ButtonConnect" </span><span style="color:red;">Margin</span><span style="color:blue;">="10"&gt;&lt;/</span><span style="color:#a31515;">Button</span><span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">ListBox </span><span style="color:red;">Grid.Row</span><span style="color:blue;">="1"             </span><span style="color:red;">ScrollViewer.VerticalScrollBarVisibility</span><span style="color:blue;">="Visible"              </span><span style="color:red;">x</span><span style="color:blue;">:</span><span style="color:red;">Name</span><span style="color:blue;">="ListBox1"&gt;&lt;/</span><span style="color:#a31515;">ListBox</span><span style="color:blue;">&gt;
&lt;/</span><span style="color:#a31515;">Grid</span><span style="color:blue;">&gt;</span></pre>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p><img style="display:inline;border-width:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image43.png?w=514&#038;h=386" border="0" alt="image" width="514" height="386" /></p>
<p>Here is all the code in MainPage.Xaml.cs.  Take a look at it here then we’ll discuss it:</p>
<pre class="code"><span style="color:blue;">public partial class </span><span style="color:#2b91af;">MainPage </span>: <span style="color:#2b91af;">UserControl
</span>{
    <span style="color:#2b91af;">DuplexServiceClient </span>receiver;
    <span style="color:#2b91af;">ObservableCollection</span>&lt;<span style="color:blue;">string</span>&gt; liveDataMessages =                                 <span style="color:blue;">new </span><span style="color:#2b91af;">ObservableCollection</span>&lt;<span style="color:blue;">string</span>&gt;();
    <span style="color:#2b91af;">CustomBinding </span>binding = <span style="color:blue;">new </span><span style="color:#2b91af;">CustomBinding</span>(
                                <span style="color:blue;">new </span><span style="color:#2b91af;">PollingDuplexBindingElement</span>(),
                                <span style="color:blue;">new </span><span style="color:#2b91af;">BinaryMessageEncodingBindingElement</span>(),
                                <span style="color:blue;">new </span><span style="color:#2b91af;">HttpTransportBindingElement</span>()
                                );

    <span style="color:blue;">public </span>MainPage()
    {
        InitializeComponent();

        ListBox1.ItemsSource = liveDataMessages;

        <span style="color:green;">//make sure the endpoint address is correct
        </span>receiver = <span style="color:blue;">new </span><span style="color:#2b91af;">DuplexServiceClient</span>(binding,                  <span style="color:blue;">new </span><span style="color:#2b91af;">EndpointAddress</span>(<span style="color:#a31515;">"http://localhost:6719/LiveDataService.svc"</span>));
        receiver.SendToClientReceived += (sender, e) =&gt;
            {
                <span style="color:blue;">if </span>(e.msg <span style="color:blue;">is </span><span style="color:#2b91af;">LiveDataMessage</span>)
                {
                    <span style="color:#2b91af;">LiveDataMessage </span>msg = (<span style="color:#2b91af;">LiveDataMessage</span>)e.msg;
                    liveDataMessages.Add(<span style="color:blue;">string</span>.Format(<span style="color:#a31515;">"{0}.                      Value = {1}"</span>, msg.Description, msg.Value));
                }
            };
    }

    <span style="color:blue;">bool </span>connected = <span style="color:blue;">false</span>;
    <span style="color:blue;">private void </span>ButtonConnect_Click(<span style="color:blue;">object </span>sender, <span style="color:#2b91af;">RoutedEventArgs </span>e)
    {
        <span style="color:blue;">if </span>(connected)
        {
            Disconnect();
        }
        <span style="color:blue;">else
        </span>{
            Connect();
        }
    }

    <span style="color:blue;">private void </span>Connect()
    {
        ButtonConnect.Content = <span style="color:#a31515;">"Connecting..."</span>;
        receiver.SendToServiceCompleted += (sender, e) =&gt;
        {
            ButtonConnect.Content = <span style="color:#a31515;">"Connected (click to disconnect)"</span>;
            connected = <span style="color:blue;">true</span>;
        };
        receiver.SendToServiceAsync(<span style="color:blue;">new </span><span style="color:#2b91af;">ConnectMessage</span>());
    }

    <span style="color:blue;">private void </span>Disconnect()
    {
        ButtonConnect.Content = <span style="color:#a31515;">"Disconnecting..."</span>;
        receiver.SendToServiceCompleted += (sender, e) =&gt;
            {
                ButtonConnect.Content = <span style="color:#a31515;">"Disconnected (click to connect)"</span>;
                connected = <span style="color:blue;">false</span>;
            };
        receiver.SendToServiceAsync(<span style="color:blue;">new </span><span style="color:#2b91af;">DisconnectMessage</span>());
    }

}</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>At the top of this code, we declare 3 variables: the DuplexServiceClient,a  CustomBinding (which matched the binding of the service we created on the server) and an ObservableCollection to store the messages we get from the server.  We instantiate the DuplexServiceClient in the class constructor using the custom binding and and endpoint (make sure this is the correct address for your service) and wire up the SendToClientReceived event which is where we add the messages we get from the server to the observableCollection (which in turn shows them in the ListBox)</p>
<p>However we also need to provide a Connect method (which sends a ConnectMessage to the server) – this is to essentially to let the Duplex service on the server know we are here, and allow it to keep track us via a Session ID.  You can see this in DuplexService.cs file as shown below (line 133):</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image47.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image47_thumb.png?w=494&#038;h=147" border="0" alt="image" width="494" height="147" /></a></p>
<p>The disconnect method does the reverse by sending a DisconnectMessage to the server which reacts like this (removing the client from it’s tracked session id’s)</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image51.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image51_thumb.png?w=494&#038;h=53" border="0" alt="image" width="494" height="53" /></a></p>
<h2>Testing Your Application<a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image55.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://silverlightforbusiness.files.wordpress.com/2009/06/image55_thumb.png?w=491&#038;h=643" border="0" alt="image" width="491" height="643" /></a></h2>
<p>Press F5 to run the application, then click the Connect  button  &#8211; you will see messages sent to Silverlight from the Server every 5 seconds.  To make it more interesting, start a second browser instance and run the same application and connect that too.  You will see both clients being updated at the exactly the same time.</p>
<p><a href="http://silverlightforbusiness.files.wordpress.com/2009/06/image11.png"></a> </p>
<p>Hope this is of use.</p>
<p>You can download the source code from here: <a title="http://cid-fb8b852ef1ab0b35.skydrive.live.com/self.aspx/SampleCode/DuplexExample.zip" href="http://cid-fb8b852ef1ab0b35.skydrive.live.com/self.aspx/SampleCode/DuplexExample.zip">http://cid-fb8b852ef1ab0b35.skydrive.live.com/self.aspx/SampleCode/DuplexExample.zip</a></p>
<p>Cheers</p>
<p>Ian</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ad1521d5-2591-4426-8259-26895c1d0b89" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Silverlight">Silverlight</a>,<a rel="tag" href="http://technorati.com/tags/Duplex">Duplex</a>,<a rel="tag" href="http://technorati.com/tags/WCF">WCF</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=58&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image30_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image35_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image4_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image14_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image39_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image26_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image22_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image43.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image47_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image51_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://silverlightforbusiness.files.wordpress.com/2009/06/image55_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>You&#8217;ve arrived at the new location for the &#8220;Silverlight for Business&#8221; blog</title>
		<link>http://silverlightforbusiness.net/2009/05/16/youve-arrived-at-the-new-location-for-the-silverlight-for-business-blog/</link>
		<comments>http://silverlightforbusiness.net/2009/05/16/youve-arrived-at-the-new-location-for-the-silverlight-for-business-blog/#comments</comments>
		<pubDate>Sat, 16 May 2009 15:01:47 +0000</pubDate>
		<dc:creator>ianblackburn</dc:creator>
				<category><![CDATA[Post Summary]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Animations]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Drag and Drop]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[Serialization]]></category>
		<category><![CDATA[Silverlight Pulse]]></category>
		<category><![CDATA[Spaces]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Validation]]></category>
		<category><![CDATA[Xaml]]></category>

		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/?p=7</guid>
		<description><![CDATA[Silverlight for Business has been hosted over on Live Spaces for the last 6 months.  However there are quite a few issues with using that platform which don&#8217;t look like been fixed any time soon.  So for that reason I am moving it here.
All the old posts are still available with the original links, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=7&subd=silverlightforbusiness&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<br /><p>Silverlight for Business has been hosted over on Live Spaces for the last 6 months.  However there are quite a <a href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2076.entry" target="_blank">few issues with using that platform</a> which don&#8217;t look like been fixed any time soon.  So for that reason I am moving it here.</p>
<p>All the old posts are still available with the original links, and I have summarised them here:</p>
<ul>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2673.entry">Silverlight for Mobile – further thoughts</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2621.entry">Silverlight Pulse Grok Presentation</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2611.entry">Updated Silverlight Pulse now on http://silverlightpulse.net</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2607.entry">Silverlight Pulse – a twitter silverlight app</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2593.entry">Brad Adams talks about “Silverlight 3 for Great Business Apps”</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2566.entry">Silverlight M-V-VM Resources</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2076.entry">Windows Live Spaces: Top 5 Wish List</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!2073.entry">Silverlight Visualisation Example – how much energy is wasted in US households?</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1938.entry">Implementing Validation Logic in Silverlight 2</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1917.entry">Silverlight Accessibility and creating DDA Compliant applications in the UK</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1806.entry">Microsoft.com gets Silverlight on it’s home page</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1799.entry">Computer Weekly: Silverlight Skills are Hot!</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1796.entry">itv.com helps push Silverlight – but is the installation experience good enough and why aren’t more Microsoft sites using Silverlight?</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1779.entry">Third Party &amp; Free Silverlight Controls – Demo Pages</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1759.entry">Silverlight Drag and Drop and HitTest on any layout (not just Canvas)</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1198.entry">Creating Reusable Animations in Silverlight 2</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1174.entry">Working with Data in Silverlight 2 (Entity Framework, Ado.Net Data Services, and DataGrid)</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1107.entry">Serializing Objects to Isolated Storage in Silverlight 2</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1094.entry">Working with Xml Files in Silverlight and Isolated Storage</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1089.entry">Announcing: Silverlight &#8220;Power Seminar&#8221;</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1086.entry">Silverlight 2 vs. Asp.Net Ajax</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1082.entry">&#8220;Why Silverlight 2 Could Be Far More Important Than You Think&#8221;</a></li>
<li><a class="entryttl" href="http://blackburnian.spaces.live.com/blog/cns!FB8B852EF1AB0B35!1079.entry">Why Silverlight for Business?</a></li>
</ul>
<p>By the way, I have a stack of new posts on the way that I have been building up, so stay tuned.</p>
<p>Cheers</p>
<p>Ian</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightforbusiness.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightforbusiness.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightforbusiness.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightforbusiness.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightforbusiness.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightforbusiness.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightforbusiness.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightforbusiness.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightforbusiness.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightforbusiness.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightforbusiness.net&blog=7274361&post=7&subd=silverlightforbusiness&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightforbusiness.net/2009/05/16/youve-arrived-at-the-new-location-for-the-silverlight-for-business-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2b17c2fe571c44c0f3c00b3610b692f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianblackburn</media:title>
		</media:content>
	</item>
	</channel>
</rss>