<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>.net ready !!! : WCF</title><link>http://blogs.msdn.com/maximelamure/archive/tags/WCF/default.aspx</link><description>Tags: WCF</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Introduction to WF 3.5 / Mettez vous &amp;#224; table avec Workflow Foundation 3.5</title><link>http://blogs.msdn.com/maximelamure/archive/2008/06/29/introduction-to-wf-3-5-mettez-vous-table-avec-workflow-foundation-3-5.aspx</link><pubDate>Sun, 29 Jun 2008 19:51:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8667828</guid><dc:creator>Maxime LAMURE</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/maximelamure/comments/8667828.aspx</comments><wfw:commentRss>http://blogs.msdn.com/maximelamure/commentrss.aspx?PostID=8667828</wfw:commentRss><wfw:comment>http://blogs.msdn.com/maximelamure/rsscomments.aspx?PostID=8667828</wfw:comment><description>&lt;p&gt;&lt;font color="#0000a0"&gt;[English]&lt;/font&gt;  &lt;p&gt;&lt;font color="#0000a0"&gt;The new version of the .net framework (3.5) brings new features: C# 3, VB9, LINQ, extension methods etc. In WF, the main evolution comes with the integration of WCF (Windows Communication Foundation). It means:&lt;/font&gt;  &lt;ul&gt; &lt;li&gt;&lt;font color="#0000a0"&gt;Specific controls to call or export workflow activities in WCF&lt;/font&gt;  &lt;li&gt;&lt;font color="#0000a0"&gt;New hosting library &lt;/font&gt; &lt;li&gt;&lt;font color="#0000a0"&gt;New WF templates in VS 2008&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;font color="#0000a0"&gt;In this article (in French), I am explaining new WF functionalities in .net 3.5. I am illustrating that in implementing a service of recipes to generate chocolate cake’s one.&lt;/font&gt; &lt;/p&gt; &lt;p&gt;[Français]  &lt;p&gt;La version 3.5 du .NET Framework apporte un grand nombre de nouveautés : C# 3, VB9, LINQ, méthodes d’extensions etc. Concernant WF, sa principale évolution tourne autour de l’intégration de WCF (Windows Communications Foundation). Cela se traduit par :  &lt;ul&gt; &lt;li&gt;la présence de contrôles spécifiques pour exporter ou appeler un workflow en WCF,  &lt;li&gt;Une librairie de hosting (hébergement de workflow) spécifique,  &lt;li&gt;Des templates Visual Studio 2008.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;A travers cet article, nous allons étudier les nouvelles fonctionnalités de WF présentes dans la version 3.5 du Framework. Afin de les illustrer, nous mettrons en place un service de recette de cuisine générant celle du gâteau au chocolat.  &lt;p&gt;&amp;nbsp; &lt;iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 66px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-9c20abe60affc115.skydrive.live.com/embedrowdetail.aspx/Public/Programmez|_WF3|_5.doc" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8667828" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/maximelamure/archive/tags/WCF/default.aspx">WCF</category><category domain="http://blogs.msdn.com/maximelamure/archive/tags/WF/default.aspx">WF</category></item><item><title>WCF Performance comparison article</title><link>http://blogs.msdn.com/maximelamure/archive/2007/04/03/wcf-performance-comparison-article.aspx</link><pubDate>Tue, 03 Apr 2007 11:43:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2016662</guid><dc:creator>Maxime LAMURE</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/maximelamure/comments/2016662.aspx</comments><wfw:commentRss>http://blogs.msdn.com/maximelamure/commentrss.aspx?PostID=2016662</wfw:commentRss><wfw:comment>http://blogs.msdn.com/maximelamure/rsscomments.aspx?PostID=2016662</wfw:comment><description>&lt;p&gt;Even if i find this article not completed ( no comparison with WSE 3.0, Java WS ...) , this article is a good overview about WCF performances with Microsoft technologies. &lt;/p&gt; &lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/bb310550.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb310550.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2016662" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/maximelamure/archive/tags/.NET+/default.aspx">.NET </category><category domain="http://blogs.msdn.com/maximelamure/archive/tags/WCF/default.aspx">WCF</category></item><item><title>How to: Callback function with WCF</title><link>http://blogs.msdn.com/maximelamure/archive/2007/03/19/how-to-callback-function-with-wcf.aspx</link><pubDate>Mon, 19 Mar 2007 21:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1914102</guid><dc:creator>Maxime LAMURE</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/maximelamure/comments/1914102.aspx</comments><wfw:commentRss>http://blogs.msdn.com/maximelamure/commentrss.aspx?PostID=1914102</wfw:commentRss><wfw:comment>http://blogs.msdn.com/maximelamure/rsscomments.aspx?PostID=1914102</wfw:comment><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The goal is to inform the client that the server process has progressed: &lt;/P&gt;
&lt;P&gt;Situation: You have to update a lot of data on the server. You can use a web Service which will update your database. Each time a field is updated, the server can inform the client with the callback function. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code on the Server side:&lt;/STRONG&gt; &lt;/P&gt;
&lt;P&gt;Add an interface : 
&lt;P&gt;&lt;EM&gt;public interface IProgress&lt;BR&gt;{&lt;BR&gt;&amp;nbsp; [OperationContract(IsOneWay = true)]&lt;BR&gt;&amp;nbsp; void Update(int value);&lt;BR&gt;}&lt;/EM&gt; 
&lt;P&gt;Call the methode when you want to inform the client: 
&lt;P&gt;&lt;EM&gt;public boolean TransferMoney(int[] values)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp; IProgress iProgress = OperationContext.Current.GetCallbackChannel&amp;lt;IProgress&amp;gt;();&lt;BR&gt;&amp;nbsp; int val;&lt;BR&gt;&amp;nbsp; foreach (val in values)&lt;BR&gt;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iProgress.Update(val);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateData(val); //Update the database&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;&amp;nbsp; return true;&lt;BR&gt;}&lt;/EM&gt; 
&lt;P&gt;And change your Service Contract: 
&lt;P&gt;&lt;EM&gt;[ServiceContract(CallbackContract=typeof(IProgress), SessionMode=SessionMode.Required)]&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code on the Client side:&lt;/STRONG&gt; 
&lt;P&gt;Create the class which implements the&amp;nbsp;Interface and add the method which&amp;nbsp;will be called by the server 
&lt;P&gt;&lt;EM&gt;class Handler : IBankingServiceCallback&lt;BR&gt;{&lt;BR&gt;&amp;nbsp; public void Update(int value)&lt;BR&gt;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(“DataBase updated with: ”+value);&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;}&lt;/EM&gt; 
&lt;P&gt;Change the call of the proxy with the InstanceContext in Parameter: 
&lt;P&gt;&lt;EM&gt;MyProxy proxy = new MyProxy (new InstanceContext(new Handler()));&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1914102" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/maximelamure/archive/tags/.NET+/default.aspx">.NET </category><category domain="http://blogs.msdn.com/maximelamure/archive/tags/WCF/default.aspx">WCF</category></item><item><title>ClickOnce &amp; WCF</title><link>http://blogs.msdn.com/maximelamure/archive/2006/09/21/clickonce-wcf.aspx</link><pubDate>Thu, 21 Sep 2006 11:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:764348</guid><dc:creator>Maxime LAMURE</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/maximelamure/comments/764348.aspx</comments><wfw:commentRss>http://blogs.msdn.com/maximelamure/commentrss.aspx?PostID=764348</wfw:commentRss><wfw:comment>http://blogs.msdn.com/maximelamure/rsscomments.aspx?PostID=764348</wfw:comment><description>&lt;P&gt;A good feedback from Matias Woloski about Click Once and WCF :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://staff.southworks.net/blogs/matiaswoloski/archive/2006/04/06/ClickonceWCF.aspx" mce_href="http://staff.southworks.net/blogs/matiaswoloski/archive/2006/04/06/ClickonceWCF.aspx"&gt;http://staff.southworks.net/blogs/matiaswoloski/archive/2006/04/06/ClickonceWCF.aspx&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=764348" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/maximelamure/archive/tags/.NET+/default.aspx">.NET </category><category domain="http://blogs.msdn.com/maximelamure/archive/tags/ClickOnce/default.aspx">ClickOnce</category><category domain="http://blogs.msdn.com/maximelamure/archive/tags/WCF/default.aspx">WCF</category></item></channel></rss>