2010-05-18 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 18 May 2010 07:37:12 +0000 (07:37 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Tue, 18 May 2010 07:37:12 +0000 (07:37 -0000)
* ServiceHostBase.cs : do not arbitrarily add ServiceDebugBehavior
  on all configuration-based services. .NET doesn't do that.

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

mcs/class/System.ServiceModel/System.ServiceModel/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel/ServiceHostBase.cs

index dd610773554f9735138232077ea36d12cf6853ab..131dd802b96f506ff2e4a6e5b789b8c16a58d703 100755 (executable)
@@ -1,3 +1,8 @@
+2010-05-18  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ServiceHostBase.cs : do not arbitrarily add ServiceDebugBehavior
+         on all configuration-based services. .NET doesn't do that.
+
 2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>
 
        * ServiceHostBase.cs:
index 81b5608aabdaa9e6acbd19776e59d7d5e5c23a3a..b839e51314cbe2eff953ed0a7a6458ff415fb7dc 100644 (file)
@@ -339,13 +339,6 @@ namespace System.ServiceModel
                                Authorization = new ServiceAuthorizationBehavior ();
                                Description.Behaviors.Add (Authorization);
                        }
-
-                       // ensure ServiceDebugBehavior
-                       ServiceDebugBehavior debugBehavior = Description.Behaviors.Find<ServiceDebugBehavior> ();
-                       if (debugBehavior == null) {
-                               debugBehavior = new ServiceDebugBehavior ();
-                               Description.Behaviors.Add (debugBehavior);
-                       }
                }
 
                private ServiceElement GetServiceElement() {