* 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
+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.
foreach (ServiceEndpoint se in Description.Endpoints)
if (se.Behaviors.Find<WebHttpBehavior> () == null)
- se.Behaviors.Add (new WebScriptEnablingBehavior ());
+ se.Behaviors.Insert (0, new WebScriptEnablingBehavior ());
}
}
}