<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Design for testability &#8211; WCF proxies</title>
	<atom:link href="http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx</link>
	<description>Coding dreams since 1998!</description>
	<lastBuildDate>Thu, 17 Jan 2013 18:15:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Nigel Sampson</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-293</link>
		<dc:creator>Nigel Sampson</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-293</guid>
		<description><![CDATA[&lt;p&gt;Ahhh, now it makes a lot more sense.&lt;/p&gt;
&lt;p&gt;Thanks for that&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Ahhh, now it makes a lot more sense.</p>
<p>Thanks for that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malovicn</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-292</link>
		<dc:creator>malovicn</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-292</guid>
		<description><![CDATA[&lt;p&gt;It is probablly related to the fact that &quot;we&quot; don&#039;t have in our code service contract as separate interface but instead implementation class gets decorated by attributes.&lt;/p&gt;
&lt;p&gt;If you look at Reference.cs in my sample you would find UserService interface (note NOT IUserService)&lt;/p&gt;
&lt;p&gt; &#160; &#160;public interface UserService {&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;System.IAsyncResult BeginGetUsers(AsyncCallback callback, object asyncState);&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;ObservableCollection&lt;User&gt; EndGetUsers(IAsyncResult result);&lt;/p&gt;
&lt;p&gt; &#160; &#160;}&lt;/p&gt;
&lt;p&gt;The main difference between our two approaches is that your comes out of box but requires one to use the BeginXXX, EndXXX syntax while mine requires some work but allows using xxxAsync + xxxCompleted event handler.&lt;/p&gt;
&lt;p&gt;IMHO, &quot;the more the merrier&quot; so it is good we came out with two different approaches :)&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>It is probablly related to the fact that &quot;we&quot; don&#8217;t have in our code service contract as separate interface but instead implementation class gets decorated by attributes.</p>
<p>If you look at Reference.cs in my sample you would find UserService interface (note NOT IUserService)</p>
<p> &nbsp; &nbsp;public interface UserService {</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;System.IAsyncResult BeginGetUsers(AsyncCallback callback, object asyncState);</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;ObservableCollection&lt;User&gt; EndGetUsers(IAsyncResult result);</p>
<p> &nbsp; &nbsp;}</p>
<p>The main difference between our two approaches is that your comes out of box but requires one to use the BeginXXX, EndXXX syntax while mine requires some work but allows using xxxAsync + xxxCompleted event handler.</p>
<p>IMHO, &quot;the more the merrier&quot; so it is good we came out with two different approaches <img src='http://blog.vuscode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Sampson</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-291</link>
		<dc:creator>Nigel Sampson</dc:creator>
		<pubDate>Thu, 05 Nov 2009 04:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-291</guid>
		<description><![CDATA[&lt;p&gt;Hey again, been trying pretty hard to generate a proxy that didn&#039;t contain an interface with no luck.&lt;/p&gt;
&lt;p&gt;Did find this page &lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://msdn.microsoft.com/en-us/library/ms733133.aspx&quot; rel=&quot;nofollow&quot;&gt;msdn.microsoft.com/.../ms733133.aspx&lt;/a&gt; which shows the output of svcutil which includes the two interfaces. &lt;/p&gt;
&lt;p&gt;Not sure why you (and a few of my readers) aren&#039;t getting that interface. If you do find out can you let me know at nigel.sampson@compiledexperience.com&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Hey again, been trying pretty hard to generate a proxy that didn&#39;t contain an interface with no luck.</p>
<p>Did find this page <a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms733133.aspx" rel="nofollow">msdn.microsoft.com/&#8230;/ms733133.aspx</a> which shows the output of svcutil which includes the two interfaces. </p>
<p>Not sure why you (and a few of my readers) aren&#39;t getting that interface. If you do find out can you let me know at <a href="mailto:nigel.sampson@compiledexperience.com">nigel.sampson@compiledexperience.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Sampson</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-290</link>
		<dc:creator>Nigel Sampson</dc:creator>
		<pubDate>Tue, 03 Nov 2009 21:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-290</guid>
		<description><![CDATA[&lt;p&gt;I&#039;ve been back and double checked it (running Visual Studio 2008 with Silverlight 3) and Reference.cs contained two interfaces ICocktailService and ICoctailServiceChannel. Haven&#039;t used the latter, but the former contained the BeginX and EndX method pairs (but not the events exposed by the actual implementation CocktailServiceClient). &lt;/p&gt;
&lt;p&gt;The post is at &lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://compiledexperience.com/blog/posts/Blendable-MVVM-WCF-and-Asynch-Data-Sources&quot; rel=&quot;nofollow&quot;&gt;compiledexperience.com/.../Blendable-MVVM-WCF-and-Asynch-Data-Sources&lt;/a&gt; but I didn&#039;t put the generated interface in (didn&#039;t think it was overly special), but had a few emails about it not being generated for others so I&#039;m looking into why. &lt;/p&gt;
&lt;p&gt;It&#039;s really strange, initially thought it was because both server and client were in same solution, but tried from a seperate solution to get the interface.&lt;/p&gt;
&lt;p&gt;Will comment here when I have some definate answers (I&#039;ve just checked and my work computer is generating interfaces as well). &lt;/p&gt;
&lt;p&gt;Could it be .net 3.5 SP1?&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>I&#39;ve been back and double checked it (running Visual Studio 2008 with Silverlight 3) and Reference.cs contained two interfaces ICocktailService and ICoctailServiceChannel. Haven&#39;t used the latter, but the former contained the BeginX and EndX method pairs (but not the events exposed by the actual implementation CocktailServiceClient). </p>
<p>The post is at <a rel="nofollow" target="_new" href="http://compiledexperience.com/blog/posts/Blendable-MVVM-WCF-and-Asynch-Data-Sources" rel="nofollow">compiledexperience.com/&#8230;/Blendable-MVVM-WCF-and-Asynch-Data-Sources</a> but I didn&#39;t put the generated interface in (didn&#39;t think it was overly special), but had a few emails about it not being generated for others so I&#39;m looking into why. </p>
<p>It&#39;s really strange, initially thought it was because both server and client were in same solution, but tried from a seperate solution to get the interface.</p>
<p>Will comment here when I have some definate answers (I&#39;ve just checked and my work computer is generating interfaces as well). </p>
<p>Could it be .net 3.5 SP1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malovicn</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-289</link>
		<dc:creator>malovicn</dc:creator>
		<pubDate>Sun, 01 Nov 2009 20:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-289</guid>
		<description><![CDATA[&lt;p&gt;Nigel,&lt;/p&gt;
&lt;p&gt;I was doing this &quot;more then a few times&quot; in both VS2008 and VS2010 with Silverlight, Wpf and ASP .NEt and never seen &#160;that IUserServiceClient &#160;interface&lt;/p&gt;
&lt;p&gt;What I have seen is &#124;IUserService&#124; (being a service contract) but in Silverlight async scenarios (and WPF if you want to have easy multy targeting scenario) that result with that interface having pairs BeginXXX and EndXxx etc -&gt; totally different API then the one from client I am using in my post&lt;/p&gt;
&lt;p&gt;Can you please post a link to your blog post where you presented your case? I am dying to see that&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Nigel,</p>
<p>I was doing this &quot;more then a few times&quot; in both VS2008 and VS2010 with Silverlight, Wpf and ASP .NEt and never seen &nbsp;that IUserServiceClient &nbsp;interface</p>
<p>What I have seen is |IUserService| (being a service contract) but in Silverlight async scenarios (and WPF if you want to have easy multy targeting scenario) that result with that interface having pairs BeginXXX and EndXxx etc -&gt; totally different API then the one from client I am using in my post</p>
<p>Can you please post a link to your blog post where you presented your case? I am dying to see that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Sampson</title>
		<link>http://blog.vuscode.com/malovicn/archive/2009/11/01/design-for-testability-wcf-proxies.aspx#comment-288</link>
		<dc:creator>Nigel Sampson</dc:creator>
		<pubDate>Sun, 01 Nov 2009 10:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-288</guid>
		<description><![CDATA[&lt;p&gt;Excellent post, thanks a lot. One thing I found interesting though was that I wrote something similar around WCF and MVVM not long ago and found that WCF proxy had a pregenerated interface already on it.&lt;/p&gt;
&lt;p&gt;What&#039;s strange is that was almost exactly the same as your service. Some tooling difference? Woud love to know your opinion&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Excellent post, thanks a lot. One thing I found interesting though was that I wrote something similar around WCF and MVVM not long ago and found that WCF proxy had a pregenerated interface already on it.</p>
<p>What&#39;s strange is that was almost exactly the same as your service. Some tooling difference? Woud love to know your opinion</p>
]]></content:encoded>
	</item>
</channel>
</rss>
