Browse Source

2009-09-01 Atsushi Enomoto <[email protected]>

	* ChannelFactory_1.cs : validate behaviors.


svn path=/trunk/mcs/; revision=141043
Atsushi Eno 16 years ago
parent
commit
a77b1d8ee6

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel/ChangeLog

@@ -1,3 +1,7 @@
+2009-09-01  Atsushi Enomoto  <[email protected]>
+
+	* ChannelFactory_1.cs : validate behaviors.
+
 2009-09-01  Atsushi Enomoto  <[email protected]>
 
 	* ClientRuntimeChannel.cs : add Extensions.

+ 1 - 0
mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs

@@ -131,6 +131,7 @@ namespace System.ServiceModel
 		public virtual TChannel CreateChannel (EndpointAddress address, Uri via)
 		{
 			EnsureOpened ();
+			Endpoint.Validate ();
 			Type type = ClientProxyGenerator.CreateProxyType (typeof (TChannel), Endpoint.Contract, false);
 			// in .NET and SL2, it seems that the proxy is RealProxy.
 			// But since there is no remoting in SL2 (and we have