Author: atsushi
Date: 2008-02-16 07:04:33 -0500 (Sat, 16 Feb 2008)
New Revision: 95862
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/ChangeLog
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebServiceHostFactory.cs
Log:
2006-02-16 Atsushi Enomoto <[EMAIL PROTECTED]>
* WebServiceHostFactory.cs, WebScriptServiceHostFactory.cs :
new.
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/ChangeLog
2008-02-16 11:58:50 UTC (rev 95861)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/ChangeLog
2008-02-16 12:04:33 UTC (rev 95862)
@@ -0,0 +1,5 @@
+2006-02-16 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * WebServiceHostFactory.cs, WebScriptServiceHostFactory.cs :
+ new files.
+
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs
2008-02-16 11:58:50 UTC (rev 95861)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs
2008-02-16 12:04:33 UTC (rev 95862)
@@ -0,0 +1,62 @@
+//
+// WebScriptServiceHostFactory.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+using System.ServiceModel.Web;
+using System.Text;
+
+namespace System.ServiceModel.Activation
+{
+ public class WebScriptServiceHostFactory : ServiceHostFactory
+ {
+ public WebScriptServiceHostFactory ()
+ {
+ }
+
+ protected override ServiceHost CreateServiceHost (Type
serviceType, Uri [] baseAddresses)
+ {
+ return new WebScriptServiceHost (serviceType,
baseAddresses);
+ }
+
+ class WebScriptServiceHost : ServiceHost
+ {
+ public WebScriptServiceHost (Type serviceType, params
Uri [] baseAddresses)
+ : base (serviceType, baseAddresses)
+ {
+ }
+
+ protected override void OnOpening ()
+ {
+ foreach (ServiceEndpoint se in
Description.Endpoints)
+ if (se.Behaviors.Find<WebHttpBehavior>
() == null)
+ se.Behaviors.Add (new
WebScriptEnablingBehavior ());
+ }
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebScriptServiceHostFactory.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebServiceHostFactory.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebServiceHostFactory.cs
2008-02-16 11:58:50 UTC (rev 95861)
+++
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebServiceHostFactory.cs
2008-02-16 12:04:33 UTC (rev 95862)
@@ -0,0 +1,47 @@
+//
+// WebServiceHostFactory.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+using System.ServiceModel.Web;
+using System.Text;
+
+namespace System.ServiceModel.Activation
+{
+ public class WebServiceHostFactory : ServiceHostFactory
+ {
+ public WebServiceHostFactory ()
+ {
+ }
+
+ protected override ServiceHost CreateServiceHost (Type
serviceType, Uri [] baseAddresses)
+ {
+ return new WebServiceHost (serviceType, baseAddresses);
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Activation/WebServiceHostFactory.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches