2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 11 Aug 2009 11:08:13 +0000 (11:08 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Tue, 11 Aug 2009 11:08:13 +0000 (11:08 -0000)
* WebChannelFactory.cs : added missing constructors.

svn path=/trunk/mcs/; revision=139699

mcs/class/System.ServiceModel.Web/System.ServiceModel.Web/ChangeLog
mcs/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs

index 0ed9b09c3ebf2260bc02d6d41f012e962adf36a0..58558bf33201c9efa171499fd48eb21d11f4826f 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * WebChannelFactory.cs : added missing constructors.
+
 2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>
 
        * OutgoingWebRequestContext.cs : implement.
index fde26ec255c2e04151bffb5781e7065819b2f1c3..7670649b3fd9e76c6b7b3eef933fe17d6c07243e 100644 (file)
@@ -60,19 +60,18 @@ namespace System.ServiceModel.Web
                }
 
                public WebChannelFactory (Uri remoteAddress)
-                       : base ()
+                       : this (String.Empty, remoteAddress)
                {
-                       Endpoint.Address = new EndpointAddress (remoteAddress);
                }
 
-               public WebChannelFactory (string configurationName, Uri remoteAddress)
-                       : this (configurationName)
+               public WebChannelFactory (string endpointConfigurationName, Uri remoteAddress)
+                       : base (endpointConfigurationName)
                {
                        Endpoint.Address = new EndpointAddress (remoteAddress);
                }
 
                public WebChannelFactory (Binding binding, Uri remoteAddress)
-                       : this (new ServiceEndpoint (ContractDescription.GetContract (typeof (TChannel)), binding, new EndpointAddress (remoteAddress)))
+                       : base (binding, new EndpointAddress (remoteAddress))
                {
                }