2010-05-21 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 21 May 2010 07:19:58 +0000 (07:19 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 21 May 2010 07:19:58 +0000 (07:19 -0000)
* WebScriptServiceHostFactory.cs : similarly to ServiceDebugBehavior
  and ServiceMetadataBehavior in ServiceHostBase, it must *prepend*
  WebScriptEnablingBehavior to apply all other behaviors subsequently.

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

mcs/class/System.ServiceModel.Web/System.ServiceModel.Activation/ChangeLog
mcs/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs

index 660bc463fe3ef7136026c32926cd26c01b9df4fa..28906b362ca9971ace940b7d05df4a7c5717b30c 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * WebScriptServiceHostFactory.cs : similarly to ServiceDebugBehavior
+         and ServiceMetadataBehavior in ServiceHostBase, it must *prepend*
+         WebScriptEnablingBehavior to apply all other behaviors subsequently.
+
 2009-10-09  Atsushi Enomoto  <atsushi@ximian.com>
 
        * WebScriptServiceHostFactory.cs : call base.OnOpening() here too.
index 5a99fdbf16264a69d45078b7b4f49da4ddaff7a3..153f9db6662ab274095538fc771a0b394bd46993 100644 (file)
@@ -84,7 +84,7 @@ namespace System.ServiceModel.Activation
 
                                foreach (ServiceEndpoint se in Description.Endpoints)
                                        if (se.Behaviors.Find<WebHttpBehavior> () == null)
-                                               se.Behaviors.Add (new WebScriptEnablingBehavior ());
+                                               se.Behaviors.Insert (0, new WebScriptEnablingBehavior ());
                        }
                }
        }