﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/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>Cloning of ClientCredentials</title><link />http://developers.de/blogs/damir_dobric/archive/2007/05/01/Cloning-of-ClientCredentials.aspx<description>The typical WCF client application is often the required to supply the client's credentials. Following code snippet shows how to create the proxy instance with username-password credentials: ChannelFactory &amp;lt; ITestService &amp;gt; factory = new ChannelFactory</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: Cloning of ClientCredentials</title><link />http://developers.de/blogs/damir_dobric/archive/2007/05/01/Cloning-of-ClientCredentials.aspx#1286<pubdate>Tue, 01 May 2007 00:54:07 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1286</guid><dc:creator>Andreas Erben</dc:creator><description>&lt;p&gt;Further reading is interesting in a similar context:&lt;/p&gt;
&lt;p&gt;How To: Create Custom Client and Service Credentials &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms730868.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms730868.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even though it does not clone the credentials, applying a newly created credentials is pretty much the same.&lt;/p&gt;
&lt;p&gt;In general: The ... &amp;quot;remove&amp;quot;-&amp;quot;add&amp;quot; pattern is used often.&lt;/p&gt;
&lt;p&gt;What would be interesting to look at in my opinion is, if there might be a valid need to create an new instance of the client credentials by using &amp;quot;.clone()&amp;quot; in this specific context in terms of effects on garbage collection of the channel factory instance that is to be destroyed. (I haven't gone much deeper to check what client credentials references ...)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1286" width="1" height="1"&gt;</description></item></channel></rss>