[Mono-dev] (WCF) Possible bug in ChannelFactoryBase.cs

Thiago Padilha tpadilha84 at gmail.com
Mon Jul 5 21:26:32 EDT 2010


  Hi,

  I'm not sure about this, but maybe there's a small bug in the
'CreateChannel(EndpointAddress)' method :

"
public TChannel CreateChannel (
			EndpointAddress remoteAddress)
		{
			return CreateChannel (remoteAddress, null);
		}
"

  The MSDN sample
http://msdn.microsoft.com/en-us/library/ms751494.aspx makes use of the
"via" parameter(which I don't understand what it's purpose is)  on the
"OnCreateChannel" implementation in "UdpOutputChannel" class. Maybe
the passing "remoteAddress.Uri" instead of null would make it work as
expected? Here is how it would look :

"
public TChannel CreateChannel (
			EndpointAddress remoteAddress)
		{
			return CreateChannel (remoteAddress, remoteAddress.Uri);
		}
"


More information about the Mono-devel-list mailing list