svn:eol-style native.
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 8 Jun 2009 09:21:35 +0000 (09:21 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 8 Jun 2009 09:21:35 +0000 (09:21 -0000)
svn path=/trunk/mcs/; revision=135653

40 files changed:
mcs/class/System.ServiceModel/System.ServiceModel.Activation/HttpHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Activation/HttpModule.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/AllowedAudienceUriElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/AllowedAudienceUriElementCollection.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/BehaviorExtensionElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/EncodingConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/IPAddressConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/MessageSecurityVersionConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/MessageVersionConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/PolicyVersionConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ReliableMessagingVersionConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/SecurityAlgorithmSuiteConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/TransactionProtocolConverter.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WS2007FederationHttpBindingCollectionElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WS2007FederationHttpBindingElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WS2007HttpBindingCollectionElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WS2007HttpBindingElement.cs
mcs/class/System.ServiceModel/System.ServiceModel.Description/CallbackTimeoutsBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel.Description/PolicyVersion.cs
mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceTimeoutsBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel.Description/SynchronousReceiveBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseRequestProcessor.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseRequestProcessorHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/DataContractSerializerServiceBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/DefaultInstanceContextProvider.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/ErrorProcessingHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/FinalizeProcessingHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/InitializingHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/InputOrReplyRequestProcessor.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/InstanceBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/MessageProcessingContext.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/OperationContextScopeHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/OperationInvokerHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/PostReceiveRequestHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/ReplyHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/SecurityHandler.cs
mcs/class/System.ServiceModel/System.ServiceModel/PeerSecuritySettings.cs
mcs/class/System.ServiceModel/System.ServiceModel/ReliableMessagingVersion.cs
mcs/class/System.ServiceModel/System.ServiceModel/WS2007FederationHttpBinding.cs
mcs/class/System.ServiceModel/System.ServiceModel/WS2007HttpBinding.cs

index a130b282a0f06df603d48198bec8e9c00d418720..66cbc6da883e7c8857a328580fe91923641075b8 100644 (file)
@@ -1,40 +1,40 @@
-//\r
-// HttpHandler.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Web;\r
-using System.ServiceModel.Channels;\r
-\r
-namespace System.ServiceModel.Activation\r
-{\r
-       class HttpHandler : SvcHttpHandlerFactory\r
-       {\r
-       }\r
-}\r
+//
+// HttpHandler.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.Web;
+using System.ServiceModel.Channels;
+
+namespace System.ServiceModel.Activation
+{
+       class HttpHandler : SvcHttpHandlerFactory
+       {
+       }
+}
index c4d16eac4b9a5442c72de60d018eb43c6d6593c5..7cadbe76c960135ae204d49d3ab13ff7af87aac0 100644 (file)
@@ -1,48 +1,48 @@
-//\r
-// BasicHttpBindingElementTest.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Web;\r
-\r
-namespace System.ServiceModel.Activation\r
-{\r
-       class HttpModule : IHttpModule\r
-       {\r
-               #region IHttpModule Members\r
-\r
-               public void Dispose () {\r
-               }\r
-\r
-               public void Init (HttpApplication context) {\r
-               }\r
-\r
-               #endregion\r
-       }\r
-}\r
+//
+// BasicHttpBindingElementTest.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.Web;
+
+namespace System.ServiceModel.Activation
+{
+       class HttpModule : IHttpModule
+       {
+               #region IHttpModule Members
+
+               public void Dispose () {
+               }
+
+               public void Init (HttpApplication context) {
+               }
+
+               #endregion
+       }
+}
index 96bbc2834e61d49174afc40a28482dd4b2fb6f33..d9c108029492fbd59a7c1a8175cdcc06efc30050 100644 (file)
@@ -1,61 +1,61 @@
-//\r
-// AllowedAudienceUriElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Configuration;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       public sealed class AllowedAudienceUriElement : ConfigurationElement\r
-       {\r
-               ConfigurationPropertyCollection _properties;\r
-\r
-               public AllowedAudienceUriElement () {\r
-               }\r
-\r
-               [StringValidator (MinLength = 1)]\r
-               [ConfigurationProperty ("allowedAudienceUri",\r
-                       Options = ConfigurationPropertyOptions.IsKey)]\r
-               public string AllowedAudienceUri {\r
-                       get { return (string) this ["allowedAudienceUri"]; }\r
-                       set { this ["allowedAudienceUri"] = value; }\r
-               }\r
-\r
-               protected override ConfigurationPropertyCollection Properties {\r
-                       get {\r
-                               if (_properties == null) {\r
-                                       _properties = new ConfigurationPropertyCollection ();\r
-                                       _properties.Add (new ConfigurationProperty ("allowedAudienceUri", typeof (string), null, null, new StringValidator (1), ConfigurationPropertyOptions.IsKey));\r
-                               }\r
-                               return _properties;\r
-                       }\r
-               }\r
-       }\r
+//
+// AllowedAudienceUriElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.Configuration;
+
+namespace System.ServiceModel.Configuration
+{
+       public sealed class AllowedAudienceUriElement : ConfigurationElement
+       {
+               ConfigurationPropertyCollection _properties;
+
+               public AllowedAudienceUriElement () {
+               }
+
+               [StringValidator (MinLength = 1)]
+               [ConfigurationProperty ("allowedAudienceUri",
+                       Options = ConfigurationPropertyOptions.IsKey)]
+               public string AllowedAudienceUri {
+                       get { return (string) this ["allowedAudienceUri"]; }
+                       set { this ["allowedAudienceUri"] = value; }
+               }
+
+               protected override ConfigurationPropertyCollection Properties {
+                       get {
+                               if (_properties == null) {
+                                       _properties = new ConfigurationPropertyCollection ();
+                                       _properties.Add (new ConfigurationProperty ("allowedAudienceUri", typeof (string), null, null, new StringValidator (1), ConfigurationPropertyOptions.IsKey));
+                               }
+                               return _properties;
+                       }
+               }
+       }
 }
\ No newline at end of file
index a72db787c783617de1003082c4d170713a65175d..ba73029708c9fde2ff7251c150b0ad56e0846f6a 100644 (file)
@@ -1,56 +1,56 @@
-//\r
-// AllowedAudienceUriElementCollection.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Configuration;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       [ConfigurationCollection (typeof (AllowedAudienceUriElement), CollectionType = ConfigurationElementCollectionType.BasicMap)]\r
-       public sealed class AllowedAudienceUriElementCollection : ServiceModelConfigurationElementCollection<AllowedAudienceUriElement>\r
-       {\r
-               public AllowedAudienceUriElementCollection () {\r
-               }\r
-\r
-               protected override bool ThrowOnDuplicate {\r
-                       get {\r
-                               return base.ThrowOnDuplicate;\r
-                       }\r
-               }\r
-\r
-               protected override System.Configuration.ConfigurationElement CreateNewElement () {\r
-                       return new AllowedAudienceUriElement ();\r
-               }\r
-\r
-               protected override object GetElementKey (ConfigurationElement element) {\r
-                       return ((AllowedAudienceUriElement) element).AllowedAudienceUri;\r
-               }\r
-       }\r
-}\r
+//
+// AllowedAudienceUriElementCollection.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.Configuration;
+
+namespace System.ServiceModel.Configuration
+{
+       [ConfigurationCollection (typeof (AllowedAudienceUriElement), CollectionType = ConfigurationElementCollectionType.BasicMap)]
+       public sealed class AllowedAudienceUriElementCollection : ServiceModelConfigurationElementCollection<AllowedAudienceUriElement>
+       {
+               public AllowedAudienceUriElementCollection () {
+               }
+
+               protected override bool ThrowOnDuplicate {
+                       get {
+                               return base.ThrowOnDuplicate;
+                       }
+               }
+
+               protected override System.Configuration.ConfigurationElement CreateNewElement () {
+                       return new AllowedAudienceUriElement ();
+               }
+
+               protected override object GetElementKey (ConfigurationElement element) {
+                       return ((AllowedAudienceUriElement) element).AllowedAudienceUri;
+               }
+       }
+}
index 3c05f29ec611857c4723bc681199983227df1633..5ad655fc25f444f8309f0b74334860c7a5dcbda3 100644 (file)
@@ -1,52 +1,52 @@
-//\r
-// BehaviorExtensionElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Xml;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       // BehaviorExtensionElement\r
-       public abstract class BehaviorExtensionElement\r
-                : ServiceModelExtensionElement\r
-       {\r
-               protected BehaviorExtensionElement () {\r
-               }\r
-\r
-               // Properties\r
-               public abstract Type BehaviorType { get; }\r
-\r
-               protected internal abstract object CreateBehavior ();\r
-\r
-               internal override string GetConfigurationElementName () {\r
-                       return ConfigUtil.ExtensionsSection.BehaviorExtensions.GetConfigurationElementName (GetType ());\r
-               }\r
-       }\r
-}\r
+//
+// BehaviorExtensionElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.Xml;
+
+namespace System.ServiceModel.Configuration
+{
+       // BehaviorExtensionElement
+       public abstract class BehaviorExtensionElement
+                : ServiceModelExtensionElement
+       {
+               protected BehaviorExtensionElement () {
+               }
+
+               // Properties
+               public abstract Type BehaviorType { get; }
+
+               protected internal abstract object CreateBehavior ();
+
+               internal override string GetConfigurationElementName () {
+                       return ConfigUtil.ExtensionsSection.BehaviorExtensions.GetConfigurationElementName (GetType ());
+               }
+       }
+}
index aceb93d0ddda4f5e384dff9035909f9e802249f4..a700eb6a7683f559e92144df3795ad079d5dab8d 100644 (file)
@@ -1,85 +1,85 @@
-//\r
-// EncodingConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.Globalization;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       sealed class EncodingConverter : TypeConverter\r
-       {\r
-               static EncodingConverter _instance = new EncodingConverter ();\r
-\r
-               public static EncodingConverter Instance {\r
-                       get { return _instance; }\r
-               }\r
-\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) {\r
-                       string encString = (string) value;\r
-                       Encoding encoding;\r
-\r
-                       switch (encString.ToLower (CultureInfo.InvariantCulture)) {\r
-                       case "utf-16le":\r
-                       case "utf-16":\r
-                       case "ucs-2":\r
-                       case "unicode":\r
-                       case "iso-10646-ucs-2":\r
-                               encoding = new UnicodeEncoding (false, true);\r
-                               break;\r
-                       case "utf-16be":\r
-                       case "unicodefffe":\r
-                               encoding = new UnicodeEncoding (true, true);\r
-                               break;\r
-                       case "utf-8":\r
-                       case "unicode-1-1-utf-8":\r
-                       case "unicode-2-0-utf-8":\r
-                       case "x-unicode-1-1-utf-8":\r
-                       case "x-unicode-2-0-utf-8":\r
-                               encoding = Encoding.UTF8;\r
-                               break;\r
-                       default:\r
-                               encoding = Encoding.GetEncoding (encString);\r
-                               break;\r
-                       }\r
-\r
-                       return encoding;\r
-               }\r
-\r
-               public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {\r
-                       Encoding encoding = (Encoding) value;\r
-                       return encoding.WebName;\r
-               }\r
-       }\r
-}\r
+//
+// EncodingConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.Globalization;
+
+namespace System.ServiceModel.Configuration
+{
+       sealed class EncodingConverter : TypeConverter
+       {
+               static EncodingConverter _instance = new EncodingConverter ();
+
+               public static EncodingConverter Instance {
+                       get { return _instance; }
+               }
+
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) {
+                       string encString = (string) value;
+                       Encoding encoding;
+
+                       switch (encString.ToLower (CultureInfo.InvariantCulture)) {
+                       case "utf-16le":
+                       case "utf-16":
+                       case "ucs-2":
+                       case "unicode":
+                       case "iso-10646-ucs-2":
+                               encoding = new UnicodeEncoding (false, true);
+                               break;
+                       case "utf-16be":
+                       case "unicodefffe":
+                               encoding = new UnicodeEncoding (true, true);
+                               break;
+                       case "utf-8":
+                       case "unicode-1-1-utf-8":
+                       case "unicode-2-0-utf-8":
+                       case "x-unicode-1-1-utf-8":
+                       case "x-unicode-2-0-utf-8":
+                               encoding = Encoding.UTF8;
+                               break;
+                       default:
+                               encoding = Encoding.GetEncoding (encString);
+                               break;
+                       }
+
+                       return encoding;
+               }
+
+               public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
+                       Encoding encoding = (Encoding) value;
+                       return encoding.WebName;
+               }
+       }
+}
index a2b174ee890772f092866a0fb347ae5af68bdbf3..290b0e715851e1d9b71d2f79d1bef7bfd40e3998 100644 (file)
@@ -1,20 +1,20 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.Net;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       class IPAddressConverter\r
-        : TypeConverter\r
-       {\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       return IPAddress.Parse ((string) value);\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.Net;
+
+namespace System.ServiceModel.Configuration
+{
+       class IPAddressConverter
+        : TypeConverter
+       {
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       return IPAddress.Parse ((string) value);
+               }
+       }
+}
index ce0b8fdc727ac3d6f51c179c33373f3282ff630e..1c56045a308c81a614faf28a572a9443caf01122 100644 (file)
@@ -1,59 +1,59 @@
-//\r
-// MessageSecurityVersionConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       class MessageSecurityVersionConverter : TypeConverter\r
-       {\r
-               static readonly Dictionary<string, MessageSecurityVersion> _lookup;\r
-\r
-               static MessageSecurityVersionConverter () {\r
-                       _lookup = new Dictionary<string, MessageSecurityVersion> (StringComparer.OrdinalIgnoreCase);\r
-                       _lookup.Add ("Default", MessageSecurityVersion.Default);\r
-                       _lookup.Add ("WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10", MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);\r
-                       _lookup.Add ("WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11", MessageSecurityVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11);\r
-                       _lookup.Add ("WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10", MessageSecurityVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);\r
-               }\r
-\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       string stringValue = (string) value;\r
-                       if (_lookup.ContainsKey (stringValue))\r
-                               return _lookup [stringValue];\r
-                       throw new ArgumentOutOfRangeException ();\r
-               }\r
-       }\r
-}\r
+//
+// MessageSecurityVersionConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+
+namespace System.ServiceModel.Configuration
+{
+       class MessageSecurityVersionConverter : TypeConverter
+       {
+               static readonly Dictionary<string, MessageSecurityVersion> _lookup;
+
+               static MessageSecurityVersionConverter () {
+                       _lookup = new Dictionary<string, MessageSecurityVersion> (StringComparer.OrdinalIgnoreCase);
+                       _lookup.Add ("Default", MessageSecurityVersion.Default);
+                       _lookup.Add ("WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10", MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
+                       _lookup.Add ("WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11", MessageSecurityVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11);
+                       _lookup.Add ("WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10", MessageSecurityVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
+               }
+
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       string stringValue = (string) value;
+                       if (_lookup.ContainsKey (stringValue))
+                               return _lookup [stringValue];
+                       throw new ArgumentOutOfRangeException ();
+               }
+       }
+}
index 57d3d0bc3ad9c7da095db77b562a6cfd6ca272d4..99381d5cb7ba6ac1bae43d6bd79e800395d1eac1 100644 (file)
@@ -1,65 +1,65 @@
-//\r
-// MessageVersionConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.ServiceModel.Channels;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       class MessageVersionConverter\r
-        : TypeConverter\r
-       {\r
-               static readonly Dictionary<string, MessageVersion> _lookup;\r
-\r
-               static MessageVersionConverter () {\r
-                       _lookup = new Dictionary<string, MessageVersion> (StringComparer.OrdinalIgnoreCase);\r
-                       _lookup.Add ("Default", MessageVersion.Default);\r
-                       _lookup.Add ("None", MessageVersion.None);\r
-                       _lookup.Add ("Soap11", MessageVersion.Soap11);\r
-                       _lookup.Add ("Soap11WSAddressing10", MessageVersion.Soap11WSAddressing10);\r
-                       _lookup.Add ("Soap11WSAddressingAugust2004", MessageVersion.Soap11WSAddressingAugust2004);\r
-                       _lookup.Add ("Soap12", MessageVersion.Soap12);\r
-                       _lookup.Add ("Soap12WSAddressing10", MessageVersion.Soap12WSAddressing10);\r
-                       _lookup.Add ("Soap12WSAddressingAugust2004", MessageVersion.Soap12WSAddressingAugust2004);\r
-               }\r
-\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       string stringValue = (string) value;\r
-                       if (_lookup.ContainsKey (stringValue))\r
-                               return _lookup [stringValue];\r
-                       throw new ArgumentOutOfRangeException ();\r
-               }\r
-       }\r
-}\r
+//
+// MessageVersionConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.ServiceModel.Channels;
+
+namespace System.ServiceModel.Configuration
+{
+       class MessageVersionConverter
+        : TypeConverter
+       {
+               static readonly Dictionary<string, MessageVersion> _lookup;
+
+               static MessageVersionConverter () {
+                       _lookup = new Dictionary<string, MessageVersion> (StringComparer.OrdinalIgnoreCase);
+                       _lookup.Add ("Default", MessageVersion.Default);
+                       _lookup.Add ("None", MessageVersion.None);
+                       _lookup.Add ("Soap11", MessageVersion.Soap11);
+                       _lookup.Add ("Soap11WSAddressing10", MessageVersion.Soap11WSAddressing10);
+                       _lookup.Add ("Soap11WSAddressingAugust2004", MessageVersion.Soap11WSAddressingAugust2004);
+                       _lookup.Add ("Soap12", MessageVersion.Soap12);
+                       _lookup.Add ("Soap12WSAddressing10", MessageVersion.Soap12WSAddressing10);
+                       _lookup.Add ("Soap12WSAddressingAugust2004", MessageVersion.Soap12WSAddressingAugust2004);
+               }
+
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       string stringValue = (string) value;
+                       if (_lookup.ContainsKey (stringValue))
+                               return _lookup [stringValue];
+                       throw new ArgumentOutOfRangeException ();
+               }
+       }
+}
index 8137ed670f839e5240fd14a24c85c3645aa6187a..5cb060b3e1283eeb1177d865b49dd23239eab4bc 100644 (file)
@@ -1,68 +1,68 @@
-//\r
-// PolicyVersionConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.ServiceModel.Description;\r
-using System.Globalization;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       class PolicyVersionConverter : TypeConverter\r
-       {\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       string policyString = (string) value;\r
-                       switch (policyString.ToLower (CultureInfo.InvariantCulture)) {\r
-                       case "default":\r
-                               return PolicyVersion.Default;\r
-                       case "policy12":\r
-                               return PolicyVersion.Policy12;\r
-                       case "policy15":\r
-                               return PolicyVersion.Policy15;\r
-                       default:\r
-                               throw new ArgumentException ();\r
-                       }\r
-               }\r
-\r
-               public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {\r
-                       PolicyVersion policy = (PolicyVersion) value;\r
-                       if (policy == PolicyVersion.Policy12)\r
-                               return "Policy12";\r
-                       else if (policy == PolicyVersion.Policy15)\r
-                               return "Policy15";\r
-                       else\r
-                               return "Default";\r
-               }\r
-       }\r
-}\r
+//
+// PolicyVersionConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.ServiceModel.Description;
+using System.Globalization;
+
+namespace System.ServiceModel.Configuration
+{
+       class PolicyVersionConverter : TypeConverter
+       {
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       string policyString = (string) value;
+                       switch (policyString.ToLower (CultureInfo.InvariantCulture)) {
+                       case "default":
+                               return PolicyVersion.Default;
+                       case "policy12":
+                               return PolicyVersion.Policy12;
+                       case "policy15":
+                               return PolicyVersion.Policy15;
+                       default:
+                               throw new ArgumentException ();
+                       }
+               }
+
+               public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
+                       PolicyVersion policy = (PolicyVersion) value;
+                       if (policy == PolicyVersion.Policy12)
+                               return "Policy12";
+                       else if (policy == PolicyVersion.Policy15)
+                               return "Policy15";
+                       else
+                               return "Default";
+               }
+       }
+}
index bb9dfb04ba8ba597a13b54859da59b7eb5fe536f..c0354d464b488a268168e9edc9e392ce2cc927b2 100644 (file)
@@ -1,58 +1,58 @@
-//\r
-// ReliableMessagingVersionConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       class ReliableMessagingVersionConverter : TypeConverter\r
-       {\r
-               static readonly Dictionary<string, ReliableMessagingVersion> _lookup;\r
-\r
-               static ReliableMessagingVersionConverter () {\r
-                       _lookup = new Dictionary<string, ReliableMessagingVersion> (StringComparer.OrdinalIgnoreCase);\r
-                       _lookup.Add ("Default", ReliableMessagingVersion.Default);\r
-                       _lookup.Add ("WSReliableMessaging11", ReliableMessagingVersion.WSReliableMessaging11);\r
-                       _lookup.Add ("WSReliableMessagingFebruary2005", ReliableMessagingVersion.WSReliableMessagingFebruary2005);\r
-               }\r
-\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       string stringValue = (string) value;\r
-                       if (_lookup.ContainsKey (stringValue))\r
-                               return _lookup [stringValue];\r
-                       throw new ArgumentOutOfRangeException ();\r
-               }\r
-       }\r
-}\r
+//
+// ReliableMessagingVersionConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+
+namespace System.ServiceModel.Configuration
+{
+       class ReliableMessagingVersionConverter : TypeConverter
+       {
+               static readonly Dictionary<string, ReliableMessagingVersion> _lookup;
+
+               static ReliableMessagingVersionConverter () {
+                       _lookup = new Dictionary<string, ReliableMessagingVersion> (StringComparer.OrdinalIgnoreCase);
+                       _lookup.Add ("Default", ReliableMessagingVersion.Default);
+                       _lookup.Add ("WSReliableMessaging11", ReliableMessagingVersion.WSReliableMessaging11);
+                       _lookup.Add ("WSReliableMessagingFebruary2005", ReliableMessagingVersion.WSReliableMessagingFebruary2005);
+               }
+
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       string stringValue = (string) value;
+                       if (_lookup.ContainsKey (stringValue))
+                               return _lookup [stringValue];
+                       throw new ArgumentOutOfRangeException ();
+               }
+       }
+}
index 99f488a35c7b2b2116dd2490e2774b9940a29ed1..6c57fe9a2b2a1fce41b83fb042de9f5e26cbfbd5 100644 (file)
@@ -1,81 +1,81 @@
-//\r
-// SecurityAlgorithmSuiteConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.ServiceModel.Security;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       sealed class SecurityAlgorithmSuiteConverter : TypeConverter\r
-       {\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {\r
-                       string strValue = (string) value;\r
-                       switch (strValue.ToLowerInvariant ()) {\r
-                       case "default":\r
-                               return SecurityAlgorithmSuite.Default;\r
-                       case "basic128":\r
-                               return SecurityAlgorithmSuite.Basic128;\r
-                       case "basic128rsa15":\r
-                               return SecurityAlgorithmSuite.Basic128Rsa15;\r
-                       case "basic128sha256":\r
-                               return SecurityAlgorithmSuite.Basic128Sha256;\r
-                       case "basic128sha256rsa15":\r
-                               return SecurityAlgorithmSuite.Basic128Sha256Rsa15;\r
-                       case "basic192":\r
-                               return SecurityAlgorithmSuite.Basic192;\r
-                       case "basic192rsa15":\r
-                               return SecurityAlgorithmSuite.Basic192Rsa15;\r
-                       case "basic192sha256":\r
-                               return SecurityAlgorithmSuite.Basic192Sha256;\r
-                       case "basic192sha256rsa15":\r
-                               return SecurityAlgorithmSuite.Basic192Sha256Rsa15;\r
-                       case "basic256":\r
-                               return SecurityAlgorithmSuite.Basic256;\r
-                       case "basic256rsa15":\r
-                               return SecurityAlgorithmSuite.Basic256Rsa15;\r
-                       case "basic256sha256":\r
-                               return SecurityAlgorithmSuite.Basic256Sha256;\r
-                       case "basic256sha256rsa15":\r
-                               return SecurityAlgorithmSuite.Basic256Sha256Rsa15;\r
-                       }\r
-                       throw new ArgumentException ();\r
-               }\r
-\r
-               public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {\r
-                       return base.ConvertTo (context, culture, value, destinationType);\r
-               }\r
-\r
-       }\r
-}\r
+//
+// SecurityAlgorithmSuiteConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.ServiceModel.Security;
+
+namespace System.ServiceModel.Configuration
+{
+       sealed class SecurityAlgorithmSuiteConverter : TypeConverter
+       {
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
+                       string strValue = (string) value;
+                       switch (strValue.ToLowerInvariant ()) {
+                       case "default":
+                               return SecurityAlgorithmSuite.Default;
+                       case "basic128":
+                               return SecurityAlgorithmSuite.Basic128;
+                       case "basic128rsa15":
+                               return SecurityAlgorithmSuite.Basic128Rsa15;
+                       case "basic128sha256":
+                               return SecurityAlgorithmSuite.Basic128Sha256;
+                       case "basic128sha256rsa15":
+                               return SecurityAlgorithmSuite.Basic128Sha256Rsa15;
+                       case "basic192":
+                               return SecurityAlgorithmSuite.Basic192;
+                       case "basic192rsa15":
+                               return SecurityAlgorithmSuite.Basic192Rsa15;
+                       case "basic192sha256":
+                               return SecurityAlgorithmSuite.Basic192Sha256;
+                       case "basic192sha256rsa15":
+                               return SecurityAlgorithmSuite.Basic192Sha256Rsa15;
+                       case "basic256":
+                               return SecurityAlgorithmSuite.Basic256;
+                       case "basic256rsa15":
+                               return SecurityAlgorithmSuite.Basic256Rsa15;
+                       case "basic256sha256":
+                               return SecurityAlgorithmSuite.Basic256Sha256;
+                       case "basic256sha256rsa15":
+                               return SecurityAlgorithmSuite.Basic256Sha256Rsa15;
+                       }
+                       throw new ArgumentException ();
+               }
+
+               public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
+                       return base.ConvertTo (context, culture, value, destinationType);
+               }
+
+       }
+}
index 14bf69e582db47089724430a0bc3dab2830bacfd..e74088023e3d95f1b4b3c285494539994c8983d8 100644 (file)
@@ -1,63 +1,63 @@
-//\r
-// EncodingConverter.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ComponentModel;\r
-using System.Globalization;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       sealed class TransactionProtocolConverter : TypeConverter\r
-       {\r
-               static TransactionProtocolConverter _instance = new TransactionProtocolConverter ();\r
-\r
-               public static TransactionProtocolConverter Instance {\r
-                       get { return _instance; }\r
-               }\r
-\r
-               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {\r
-                       return sourceType == typeof (string);\r
-               }\r
-\r
-               public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) {\r
-                       string valueString = (string) value;\r
-\r
-                       switch (valueString.ToLower (CultureInfo.InvariantCulture)) {\r
-                       case "default":\r
-                               return TransactionProtocol.Default;\r
-                       case "oletransactions":\r
-                               return TransactionProtocol.OleTransactions;\r
-                       case "wsatomictransactionoctober2004":\r
-                               return TransactionProtocol.WSAtomicTransactionOctober2004;\r
-                       }\r
-                       throw new NotSupportedException ();\r
-               }\r
-       }\r
-}\r
+//
+// EncodingConverter.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.Globalization;
+
+namespace System.ServiceModel.Configuration
+{
+       sealed class TransactionProtocolConverter : TypeConverter
+       {
+               static TransactionProtocolConverter _instance = new TransactionProtocolConverter ();
+
+               public static TransactionProtocolConverter Instance {
+                       get { return _instance; }
+               }
+
+               public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
+                       return sourceType == typeof (string);
+               }
+
+               public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) {
+                       string valueString = (string) value;
+
+                       switch (valueString.ToLower (CultureInfo.InvariantCulture)) {
+                       case "default":
+                               return TransactionProtocol.Default;
+                       case "oletransactions":
+                               return TransactionProtocol.OleTransactions;
+                       case "wsatomictransactionoctober2004":
+                               return TransactionProtocol.WSAtomicTransactionOctober2004;
+                       }
+                       throw new NotSupportedException ();
+               }
+       }
+}
index 178535688e5e59da3724113f5b309130047401e7..0f5c8cde6aad397f7302f3a2708afc14be652281 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007FederationHttpBindingCollectionElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       [MonoTODO]\r
-       public class WS2007FederationHttpBindingCollectionElement : StandardBindingCollectionElement<WS2007FederationHttpBinding, WS2007FederationHttpBindingElement>\r
-       {\r
-       }\r
-}\r
+//
+// WS2007FederationHttpBindingCollectionElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Configuration
+{
+       [MonoTODO]
+       public class WS2007FederationHttpBindingCollectionElement : StandardBindingCollectionElement<WS2007FederationHttpBinding, WS2007FederationHttpBindingElement>
+       {
+       }
+}
index 998ae3b1bd2025b11fd717473982ce875130e669..e0b07b789ddf7f8d2da0392d4d7511590ab0853a 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007FederationHttpBindingElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       [MonoTODO]\r
-       public class WS2007FederationHttpBindingElement : WSFederationHttpBindingElement\r
-       {\r
-       }\r
-}\r
+//
+// WS2007FederationHttpBindingElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Configuration
+{
+       [MonoTODO]
+       public class WS2007FederationHttpBindingElement : WSFederationHttpBindingElement
+       {
+       }
+}
index 0c5a712fcc7c13058f6d4fd723fc33f1355babe2..a50546fb7ad2ce0513173023862622def094bf6a 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007HttpBindingCollectionElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       [MonoTODO]\r
-       public class WS2007HttpBindingCollectionElement : StandardBindingCollectionElement<WS2007HttpBinding, WS2007HttpBindingElement>\r
-       {\r
-       }\r
-}\r
+//
+// WS2007HttpBindingCollectionElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Configuration
+{
+       [MonoTODO]
+       public class WS2007HttpBindingCollectionElement : StandardBindingCollectionElement<WS2007HttpBinding, WS2007HttpBindingElement>
+       {
+       }
+}
index 27e59ce409e0c1058c8b84449d189c70dc9c4caf..79a48c4794df4c420d7f015bb2453a4c9486268c 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007HttpBindingElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Configuration\r
-{\r
-       [MonoTODO]\r
-       public class WS2007HttpBindingElement : WSHttpBindingElement\r
-       {\r
-       }\r
-}\r
+//
+// WS2007HttpBindingElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Configuration
+{
+       [MonoTODO]
+       public class WS2007HttpBindingElement : WSHttpBindingElement
+       {
+       }
+}
index e37af413070bfdc9d96ae2856600d1d41cd0d2b1..02a4027c7ca378b65d97bfd1a802705bf2360e4a 100644 (file)
@@ -1,66 +1,66 @@
-//\r
-// CallbackTimeoutsBehavior.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Novell, Inc.  http://www.novell.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Description\r
-{\r
-       class CallbackTimeoutsBehavior : IEndpointBehavior\r
-       {\r
-               public TimeSpan TransactionTimeout {\r
-                       get;\r
-                       set;\r
-               }\r
-\r
-               public CallbackTimeoutsBehavior (TimeSpan timeout) {\r
-                       TransactionTimeout = timeout;\r
-               }\r
-\r
-               #region IEndpointBehavior Members\r
-\r
-               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.EndpointDispatcher dispatcher) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-       }\r
-}\r
+//
+// CallbackTimeoutsBehavior.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// 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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Description
+{
+       class CallbackTimeoutsBehavior : IEndpointBehavior
+       {
+               public TimeSpan TransactionTimeout {
+                       get;
+                       set;
+               }
+
+               public CallbackTimeoutsBehavior (TimeSpan timeout) {
+                       TransactionTimeout = timeout;
+               }
+
+               #region IEndpointBehavior Members
+
+               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.EndpointDispatcher dispatcher) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion
+       }
+}
index 7716692c86a6eac547990b49745e5a927703536c..21012df2aea9d310606308795c2444341ca15a90 100644 (file)
@@ -1,66 +1,66 @@
-//\r
-// PolicyVersion.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Description\r
-{\r
-       public sealed class PolicyVersion\r
-       {\r
-               static PolicyVersion _policy12 = new PolicyVersion ("http://schemas.xmlsoap.org/ws/2004/09/policy");\r
-               static PolicyVersion _policy15 = new PolicyVersion ("http://www.w3.org/ns/ws-policy");\r
-\r
-               readonly string _namespace;\r
-\r
-               private PolicyVersion (string @namespace) {\r
-                       _namespace = @namespace;\r
-               }\r
-\r
-               public static PolicyVersion Default {\r
-                       get { return _policy12; }\r
-               }\r
-\r
-               public static PolicyVersion Policy12 {\r
-                       get { return _policy12; }\r
-               }\r
-\r
-               public static PolicyVersion Policy15 {\r
-                       get { return _policy15; }\r
-               }\r
-\r
-               public string Namespace {\r
-                       get { return _namespace; }\r
-               }\r
-\r
-               public override string ToString () {\r
-                       return Namespace;\r
-               }\r
-       }\r
-}\r
+//
+// PolicyVersion.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Description
+{
+       public sealed class PolicyVersion
+       {
+               static PolicyVersion _policy12 = new PolicyVersion ("http://schemas.xmlsoap.org/ws/2004/09/policy");
+               static PolicyVersion _policy15 = new PolicyVersion ("http://www.w3.org/ns/ws-policy");
+
+               readonly string _namespace;
+
+               private PolicyVersion (string @namespace) {
+                       _namespace = @namespace;
+               }
+
+               public static PolicyVersion Default {
+                       get { return _policy12; }
+               }
+
+               public static PolicyVersion Policy12 {
+                       get { return _policy12; }
+               }
+
+               public static PolicyVersion Policy15 {
+                       get { return _policy15; }
+               }
+
+               public string Namespace {
+                       get { return _namespace; }
+               }
+
+               public override string ToString () {
+                       return Namespace;
+               }
+       }
+}
index ea9be9d6cee92ed29bd8166bf9fcc82dc33960f0..92042400b3484dc532602d92883a0c8fe84d4c2c 100644 (file)
@@ -1,62 +1,62 @@
-//\r
-// ServiceTimeoutsElement.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Description\r
-{\r
-       class ServiceTimeoutsBehavior : IServiceBehavior\r
-       {\r
-               public TimeSpan TransactionTimeout {\r
-                       get;\r
-                       set;\r
-               }\r
-\r
-               public ServiceTimeoutsBehavior (TimeSpan timeout) {\r
-                       TransactionTimeout = timeout;\r
-               }\r
-\r
-               #region IServiceBehavior Members\r
-\r
-               void IServiceBehavior.AddBindingParameters (ServiceDescription description, ServiceHostBase serviceHostBase, System.Collections.ObjectModel.Collection<ServiceEndpoint> endpoints, System.ServiceModel.Channels.BindingParameterCollection parameters) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IServiceBehavior.ApplyDispatchBehavior (ServiceDescription description, ServiceHostBase serviceHostBase) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IServiceBehavior.Validate (ServiceDescription description, ServiceHostBase serviceHostBase) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-       }\r
-}\r
+//
+// ServiceTimeoutsElement.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Description
+{
+       class ServiceTimeoutsBehavior : IServiceBehavior
+       {
+               public TimeSpan TransactionTimeout {
+                       get;
+                       set;
+               }
+
+               public ServiceTimeoutsBehavior (TimeSpan timeout) {
+                       TransactionTimeout = timeout;
+               }
+
+               #region IServiceBehavior Members
+
+               void IServiceBehavior.AddBindingParameters (ServiceDescription description, ServiceHostBase serviceHostBase, System.Collections.ObjectModel.Collection<ServiceEndpoint> endpoints, System.ServiceModel.Channels.BindingParameterCollection parameters) {
+                       throw new NotImplementedException ();
+               }
+
+               void IServiceBehavior.ApplyDispatchBehavior (ServiceDescription description, ServiceHostBase serviceHostBase) {
+                       throw new NotImplementedException ();
+               }
+
+               void IServiceBehavior.Validate (ServiceDescription description, ServiceHostBase serviceHostBase) {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion
+       }
+}
index 710afdee2c377be95fce03b9a70eb60c99adc87a..6ef3c56cce04295e5c97fabac44922b994582a5f 100644 (file)
@@ -1,58 +1,58 @@
-//\r
-// SynchronousReceiveBehavior.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Description\r
-{\r
-       [MonoTODO]\r
-       public class SynchronousReceiveBehavior : IEndpointBehavior\r
-       {\r
-               #region IEndpointBehavior Members\r
-\r
-               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.EndpointDispatcher dispatcher) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-       }\r
-}\r
+//
+// SynchronousReceiveBehavior.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Description
+{
+       [MonoTODO]
+       public class SynchronousReceiveBehavior : IEndpointBehavior
+       {
+               #region IEndpointBehavior Members
+
+               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.EndpointDispatcher dispatcher) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion
+       }
+}
index a2ba2652dbe6cf99385f60f652777c746ea69758..b64bb33839ea55f39f831795aa54565fbaaeb4b0 100644 (file)
@@ -1,84 +1,84 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel.Security;\r
-using System.ServiceModel.Security.Tokens;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class BaseRequestProcessor\r
-       {\r
-               HandlersChain initialize_handlers_chain = new HandlersChain();\r
-               HandlersChain process_handlers_chain = new HandlersChain ();\r
-               HandlersChain error_handlers_chain = new HandlersChain ();\r
-               HandlersChain finalize_handlers_chain = new HandlersChain ();\r
-\r
-               protected BaseRequestProcessor () { }\r
-\r
-               protected virtual void ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       initialize_handlers_chain.ProcessRequestChain (mrc);\r
-\r
-                       using (new OperationContextScope (mrc.OperationContext)) {\r
-                               try {\r
-                                       process_handlers_chain.ProcessRequestChain (mrc);\r
-                               }\r
-                               catch (Exception e) {\r
-                                       Console.WriteLine ("Exception " + e.Message + " " + e.StackTrace);\r
-                                       mrc.ProcessingException = e;\r
-                                       error_handlers_chain.ProcessRequestChain (mrc);\r
-                               }\r
-                               finally {\r
-                                       finalize_handlers_chain.ProcessRequestChain (mrc);\r
-                               }\r
-                       }\r
-               }\r
-\r
-               public HandlersChain InitializeChain\r
-               {\r
-                       get { return initialize_handlers_chain; }\r
-               }\r
-\r
-               public HandlersChain ProcessingChain\r
-               {\r
-                       get { return process_handlers_chain; }\r
-               }\r
-\r
-               public HandlersChain ErrorChain\r
-               {\r
-                       get { return error_handlers_chain; }\r
-               }\r
-\r
-               public HandlersChain FinalizationChain\r
-               {\r
-                       get { return finalize_handlers_chain; }\r
-               }               \r
-       }\r
-\r
-       internal class HandlersChain\r
-       {\r
-               BaseRequestProcessorHandler chain;\r
-\r
-               public void ProcessRequestChain (MessageProcessingContext mrc)\r
-               {\r
-                       if (chain != null)\r
-                               chain.ProcessRequestChain (mrc);\r
-               }\r
-\r
-               public HandlersChain AddHandler (BaseRequestProcessorHandler handler)\r
-               {\r
-                       if (chain == null) {\r
-                               chain = handler;\r
-                       }\r
-                       else {\r
-                               BaseRequestProcessorHandler current = chain;\r
-                               while (current.Next != null)\r
-                                       current = current.Next;\r
-                               current.Next = handler;\r
-                       }\r
-                       return this;\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Security;
+using System.ServiceModel.Security.Tokens;
+using System.Text;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class BaseRequestProcessor
+       {
+               HandlersChain initialize_handlers_chain = new HandlersChain();
+               HandlersChain process_handlers_chain = new HandlersChain ();
+               HandlersChain error_handlers_chain = new HandlersChain ();
+               HandlersChain finalize_handlers_chain = new HandlersChain ();
+
+               protected BaseRequestProcessor () { }
+
+               protected virtual void ProcessRequest (MessageProcessingContext mrc)
+               {
+                       initialize_handlers_chain.ProcessRequestChain (mrc);
+
+                       using (new OperationContextScope (mrc.OperationContext)) {
+                               try {
+                                       process_handlers_chain.ProcessRequestChain (mrc);
+                               }
+                               catch (Exception e) {
+                                       Console.WriteLine ("Exception " + e.Message + " " + e.StackTrace);
+                                       mrc.ProcessingException = e;
+                                       error_handlers_chain.ProcessRequestChain (mrc);
+                               }
+                               finally {
+                                       finalize_handlers_chain.ProcessRequestChain (mrc);
+                               }
+                       }
+               }
+
+               public HandlersChain InitializeChain
+               {
+                       get { return initialize_handlers_chain; }
+               }
+
+               public HandlersChain ProcessingChain
+               {
+                       get { return process_handlers_chain; }
+               }
+
+               public HandlersChain ErrorChain
+               {
+                       get { return error_handlers_chain; }
+               }
+
+               public HandlersChain FinalizationChain
+               {
+                       get { return finalize_handlers_chain; }
+               }               
+       }
+
+       internal class HandlersChain
+       {
+               BaseRequestProcessorHandler chain;
+
+               public void ProcessRequestChain (MessageProcessingContext mrc)
+               {
+                       if (chain != null)
+                               chain.ProcessRequestChain (mrc);
+               }
+
+               public HandlersChain AddHandler (BaseRequestProcessorHandler handler)
+               {
+                       if (chain == null) {
+                               chain = handler;
+                       }
+                       else {
+                               BaseRequestProcessorHandler current = chain;
+                               while (current.Next != null)
+                                       current = current.Next;
+                               current.Next = handler;
+                       }
+                       return this;
+               }
+       }
+}
index b4e89543b17f1b3047032d4b32b58b24a7de5597..a9f3c10ed50a2a6e533df090218b4d94bfbf32a6 100644 (file)
@@ -1,28 +1,28 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Channels;\r
-\r
-namespace System.ServiceModel.Dispatcher \r
-{      \r
-       internal abstract class BaseRequestProcessorHandler \r
-       {\r
-               BaseRequestProcessorHandler next;               \r
-\r
-               public virtual void ProcessRequestChain (MessageProcessingContext mrc)\r
-               {\r
-                       if (!ProcessRequest (mrc) && next != null ) {                           \r
-                               next.ProcessRequestChain (mrc);\r
-                       }\r
-               }\r
-\r
-               public BaseRequestProcessorHandler Next\r
-               {\r
-                       get { return next; }\r
-                       set { next = value; }\r
-               }\r
-\r
-               protected abstract bool ProcessRequest (MessageProcessingContext mrc);\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+
+namespace System.ServiceModel.Dispatcher 
+{      
+       internal abstract class BaseRequestProcessorHandler 
+       {
+               BaseRequestProcessorHandler next;               
+
+               public virtual void ProcessRequestChain (MessageProcessingContext mrc)
+               {
+                       if (!ProcessRequest (mrc) && next != null ) {                           
+                               next.ProcessRequestChain (mrc);
+                       }
+               }
+
+               public BaseRequestProcessorHandler Next
+               {
+                       get { return next; }
+                       set { next = value; }
+               }
+
+               protected abstract bool ProcessRequest (MessageProcessingContext mrc);
+       }
+}
index b52715a3f79b0fc522a48520806cf92da99d41e3..aa32c4bccb9c7fadbab3eb55aa225a5c98571d7c 100644 (file)
@@ -1,73 +1,73 @@
-//\r
-// DataContractSerializerServiceBehavior.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Description;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       class DataContractSerializerServiceBehavior : IEndpointBehavior\r
-       {\r
-               public bool IgnoreExtensionDataObject {\r
-                       get;\r
-                       set;\r
-               }\r
-\r
-               public int MaxItemsInObjectGraph {\r
-                       get;\r
-                       set;\r
-               }\r
-\r
-               public DataContractSerializerServiceBehavior (bool ignoreExtensionDataObject, int maxItemsInObjectGraph) {\r
-                       IgnoreExtensionDataObject = ignoreExtensionDataObject;\r
-                       MaxItemsInObjectGraph = maxItemsInObjectGraph;\r
-               }\r
-\r
-               #region IEndpointBehavior Members\r
-\r
-               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, EndpointDispatcher dispatcher) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, ClientRuntime behavior) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-       }\r
-}\r
+//
+// DataContractSerializerServiceBehavior.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Dispatcher
+{
+       class DataContractSerializerServiceBehavior : IEndpointBehavior
+       {
+               public bool IgnoreExtensionDataObject {
+                       get;
+                       set;
+               }
+
+               public int MaxItemsInObjectGraph {
+                       get;
+                       set;
+               }
+
+               public DataContractSerializerServiceBehavior (bool ignoreExtensionDataObject, int maxItemsInObjectGraph) {
+                       IgnoreExtensionDataObject = ignoreExtensionDataObject;
+                       MaxItemsInObjectGraph = maxItemsInObjectGraph;
+               }
+
+               #region IEndpointBehavior Members
+
+               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection parameters) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint serviceEndpoint, EndpointDispatcher dispatcher) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.ApplyClientBehavior (ServiceEndpoint serviceEndpoint, ClientRuntime behavior) {
+                       throw new NotImplementedException ();
+               }
+
+               void IEndpointBehavior.Validate (ServiceEndpoint serviceEndpoint) {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion
+       }
+}
index f8c104b1d26db36b9190928c6f406e13ecd9cc90..b270552834781f7e2d99017e31eee9c8267f503d 100644 (file)
@@ -1,27 +1,27 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       class DefaultInstanceContextProvider : IInstanceContextProvider\r
-       {               \r
-\r
-               public InstanceContext GetExistingInstanceContext (System.ServiceModel.Channels.Message message, IContextChannel channel) {\r
-                       return null;\r
-               }\r
-\r
-               public void InitializeInstanceContext (InstanceContext instanceContext, System.ServiceModel.Channels.Message message, IContextChannel channel) {\r
-                       \r
-               }\r
-\r
-               public bool IsIdle (InstanceContext instanceContext) {\r
-                       return true;\r
-               }\r
-\r
-               public void NotifyIdle (InstanceContextIdleCallback callback, InstanceContext instanceContext) {\r
-                       \r
-               }\r
-       \r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Dispatcher
+{
+       class DefaultInstanceContextProvider : IInstanceContextProvider
+       {               
+
+               public InstanceContext GetExistingInstanceContext (System.ServiceModel.Channels.Message message, IContextChannel channel) {
+                       return null;
+               }
+
+               public void InitializeInstanceContext (InstanceContext instanceContext, System.ServiceModel.Channels.Message message, IContextChannel channel) {
+                       
+               }
+
+               public bool IsIdle (InstanceContext instanceContext) {
+                       return true;
+               }
+
+               public void NotifyIdle (InstanceContextIdleCallback callback, InstanceContext instanceContext) {
+                       
+               }
+       
+       }
+}
index 18439d545a287a98e76a2cef6f2bc6a230cfb62c..5157e4c7421745da71992bf78b5c646559f3c4db 100644 (file)
@@ -1,41 +1,41 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class ErrorProcessingHandler : BaseRequestProcessorHandler\r
-       {\r
-               public ErrorProcessingHandler (IChannel channel)\r
-               {\r
-                       duplex = channel as IDuplexChannel;\r
-               }\r
-\r
-               IDuplexChannel duplex;\r
-\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       Exception ex = mrc.ProcessingException;\r
-                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       \r
-                       //invoke all user handlers\r
-                       ChannelDispatcher channelDispatcher = dispatchRuntime.ChannelDispatcher;\r
-                       foreach (IErrorHandler handler in channelDispatcher.ErrorHandlers)\r
-                               if (handler.HandleError (ex))\r
-                                       break;\r
-\r
-                       FaultConverter fc = FaultConverter.GetDefaultFaultConverter (dispatchRuntime.ChannelDispatcher.MessageVersion);\r
-                       Message res = null;                     \r
-                       if (!fc.TryCreateFaultMessage (ex, out res))\r
-                               throw ex;\r
-                       mrc.ReplyMessage = res;\r
-                       if (duplex != null)\r
-                               mrc.Reply (duplex, true);\r
-                       else\r
-                               mrc.Reply (true);\r
-                       return false;\r
-               }               \r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class ErrorProcessingHandler : BaseRequestProcessorHandler
+       {
+               public ErrorProcessingHandler (IChannel channel)
+               {
+                       duplex = channel as IDuplexChannel;
+               }
+
+               IDuplexChannel duplex;
+
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       Exception ex = mrc.ProcessingException;
+                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       
+                       //invoke all user handlers
+                       ChannelDispatcher channelDispatcher = dispatchRuntime.ChannelDispatcher;
+                       foreach (IErrorHandler handler in channelDispatcher.ErrorHandlers)
+                               if (handler.HandleError (ex))
+                                       break;
+
+                       FaultConverter fc = FaultConverter.GetDefaultFaultConverter (dispatchRuntime.ChannelDispatcher.MessageVersion);
+                       Message res = null;                     
+                       if (!fc.TryCreateFaultMessage (ex, out res))
+                               throw ex;
+                       mrc.ReplyMessage = res;
+                       if (duplex != null)
+                               mrc.Reply (duplex, true);
+                       else
+                               mrc.Reply (true);
+                       return false;
+               }               
+       }
+}
index 89c6d4f69bab5c151cc481eec8ffe7d8dcb5d4c0..68288753449c395e622fe6ae5b11c7b84fdacd48 100644 (file)
@@ -1,25 +1,25 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class FinalizeProcessingHandler : BaseRequestProcessorHandler\r
-       {\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       FinishRequest (mrc);\r
-                       return false;\r
-               }\r
-\r
-               void FinishRequest (MessageProcessingContext mrc)\r
-               {                               \r
-                       if (mrc.Operation != null &&  mrc.Operation.ReleaseInstanceAfterCall) {\r
-                               mrc.InstanceContext.ReleaseServiceInstance ();\r
-                       }\r
-                       mrc.InstanceContext.CloseIfIdle ();                     \r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class FinalizeProcessingHandler : BaseRequestProcessorHandler
+       {
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       FinishRequest (mrc);
+                       return false;
+               }
+
+               void FinishRequest (MessageProcessingContext mrc)
+               {                               
+                       if (mrc.Operation != null &&  mrc.Operation.ReleaseInstanceAfterCall) {
+                               mrc.InstanceContext.ReleaseServiceInstance ();
+                       }
+                       mrc.InstanceContext.CloseIfIdle ();                     
+               }
+       }
+}
index 3ccb40991ada47fda37f02ea983e86e34ab53f16..e2d23f0464c2fbfcaea365b777c4f6b40e571689 100644 (file)
@@ -1,37 +1,37 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class InitializingHandler : BaseRequestProcessorHandler\r
-       {\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       InstanceContext ictx = CreateInstanceContext (mrc);\r
-                       mrc.InstanceContext = ictx;\r
-                       mrc.OperationContext.InstanceContext = ictx;\r
-                       return false;\r
-               }\r
-\r
-               InstanceContext CreateInstanceContext (MessageProcessingContext mrc)\r
-               {\r
-                       InstanceContext iCtx = null;\r
-                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       IInstanceContextProvider p = dispatchRuntime.InstanceContextProvider;\r
-\r
-                       if (p != null) {\r
-                               iCtx = p.GetExistingInstanceContext (mrc.IncomingMessage, mrc.OperationContext.Channel);\r
-                       }\r
-                       if (iCtx == null) {\r
-                               ServiceHostBase host = dispatchRuntime.ChannelDispatcher.Host;\r
-                               iCtx = new InstanceContext (dispatchRuntime.ChannelDispatcher.Host, null, false);\r
-                       }\r
-\r
-                       iCtx.Behavior = new InstanceBehavior (dispatchRuntime);\r
-                       return iCtx;\r
-               }               \r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class InitializingHandler : BaseRequestProcessorHandler
+       {
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       InstanceContext ictx = CreateInstanceContext (mrc);
+                       mrc.InstanceContext = ictx;
+                       mrc.OperationContext.InstanceContext = ictx;
+                       return false;
+               }
+
+               InstanceContext CreateInstanceContext (MessageProcessingContext mrc)
+               {
+                       InstanceContext iCtx = null;
+                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       IInstanceContextProvider p = dispatchRuntime.InstanceContextProvider;
+
+                       if (p != null) {
+                               iCtx = p.GetExistingInstanceContext (mrc.IncomingMessage, mrc.OperationContext.Channel);
+                       }
+                       if (iCtx == null) {
+                               ServiceHostBase host = dispatchRuntime.ChannelDispatcher.Host;
+                               iCtx = new InstanceContext (dispatchRuntime.ChannelDispatcher.Host, null, false);
+                       }
+
+                       iCtx.Behavior = new InstanceBehavior (dispatchRuntime);
+                       return iCtx;
+               }               
+       }
+}
index 9a3f528eb33a9323f28e2438d307ea8c20de905d..d4085f3f03c5c969e9ef346a3ca7b5064bcaf434 100644 (file)
@@ -1,66 +1,66 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel.Security;\r
-using System.ServiceModel.Security.Tokens;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class InputOrReplyRequestProcessor : BaseRequestProcessor\r
-       {\r
-               DispatchRuntime dispatch_runtime;\r
-               IChannel reply_or_input;\r
-\r
-               public InputOrReplyRequestProcessor (DispatchRuntime runtime, IChannel replyOrInput)\r
-               {\r
-                       Init (runtime, reply_or_input);\r
-\r
-                       //initialization\r
-                       InitializeChain.AddHandler (new InitializingHandler ());\r
-\r
-                       //processing\r
-                       ProcessingChain.AddHandler (new PostReceiveRequestHandler ()).\r
-                                                       AddHandler(new SecurityHandler ()).\r
-                                                       AddHandler(new OperationInvokerHandler ()).\r
-                                                       AddHandler(new ReplyHandler (replyOrInput));\r
-\r
-                       //errors\r
-                       ErrorChain.AddHandler (new ErrorProcessingHandler (replyOrInput));\r
-\r
-                       //finalize\r
-                       FinalizationChain.AddHandler (new FinalizeProcessingHandler ());\r
-               }\r
-\r
-               void Init (DispatchRuntime runtime, IChannel replyOrInput)\r
-               {\r
-                       dispatch_runtime = runtime;\r
-                       reply_or_input = replyOrInput;\r
-               }\r
-\r
-               public void ProcessInput (Message message)\r
-               {\r
-                       OperationContext opcx = CreateOperationContext (message);\r
-                       ProcessRequest (new MessageProcessingContext (opcx));\r
-               }\r
-\r
-               public void ProcessReply (RequestContext rc)\r
-               {\r
-                       OperationContext opcx = CreateOperationContext (rc.RequestMessage);\r
-                       opcx.RequestContext = rc;\r
-                       ProcessRequest (new MessageProcessingContext (opcx));\r
-               }\r
-\r
-               OperationContext CreateOperationContext (Message incoming)\r
-               {\r
-                       ServiceRuntimeChannel contextChannel = new ServiceRuntimeChannel (reply_or_input,\r
-                                                                                                       dispatch_runtime.ChannelDispatcher.DefaultOpenTimeout,\r
-                                                                                                       dispatch_runtime.ChannelDispatcher.DefaultCloseTimeout);\r
-                       OperationContext opCtx = new OperationContext (contextChannel);\r
-                       opCtx.IncomingMessage = incoming;\r
-                       opCtx.EndpointDispatcher = dispatch_runtime.EndpointDispatcher;\r
-                       return opCtx;\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Security;
+using System.ServiceModel.Security.Tokens;
+using System.Text;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class InputOrReplyRequestProcessor : BaseRequestProcessor
+       {
+               DispatchRuntime dispatch_runtime;
+               IChannel reply_or_input;
+
+               public InputOrReplyRequestProcessor (DispatchRuntime runtime, IChannel replyOrInput)
+               {
+                       Init (runtime, reply_or_input);
+
+                       //initialization
+                       InitializeChain.AddHandler (new InitializingHandler ());
+
+                       //processing
+                       ProcessingChain.AddHandler (new PostReceiveRequestHandler ()).
+                                                       AddHandler(new SecurityHandler ()).
+                                                       AddHandler(new OperationInvokerHandler ()).
+                                                       AddHandler(new ReplyHandler (replyOrInput));
+
+                       //errors
+                       ErrorChain.AddHandler (new ErrorProcessingHandler (replyOrInput));
+
+                       //finalize
+                       FinalizationChain.AddHandler (new FinalizeProcessingHandler ());
+               }
+
+               void Init (DispatchRuntime runtime, IChannel replyOrInput)
+               {
+                       dispatch_runtime = runtime;
+                       reply_or_input = replyOrInput;
+               }
+
+               public void ProcessInput (Message message)
+               {
+                       OperationContext opcx = CreateOperationContext (message);
+                       ProcessRequest (new MessageProcessingContext (opcx));
+               }
+
+               public void ProcessReply (RequestContext rc)
+               {
+                       OperationContext opcx = CreateOperationContext (rc.RequestMessage);
+                       opcx.RequestContext = rc;
+                       ProcessRequest (new MessageProcessingContext (opcx));
+               }
+
+               OperationContext CreateOperationContext (Message incoming)
+               {
+                       ServiceRuntimeChannel contextChannel = new ServiceRuntimeChannel (reply_or_input,
+                                                                                                       dispatch_runtime.ChannelDispatcher.DefaultOpenTimeout,
+                                                                                                       dispatch_runtime.ChannelDispatcher.DefaultCloseTimeout);
+                       OperationContext opCtx = new OperationContext (contextChannel);
+                       opCtx.IncomingMessage = incoming;
+                       opCtx.EndpointDispatcher = dispatch_runtime.EndpointDispatcher;
+                       return opCtx;
+               }
+       }
+}
index fe441b2f6492d9446ceea3ee6ca423794f678457..f3dd48fdf7a0c2a8f2911a271b95b09d9f32a0f3 100644 (file)
@@ -1,54 +1,54 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Dispatcher;\r
-using System.ServiceModel.Channels;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class InstanceBehavior\r
-       {\r
-               DispatchRuntime dispatch_runtime;\r
-\r
-               internal InstanceBehavior (DispatchRuntime runtime) {\r
-                       dispatch_runtime = runtime;\r
-               }\r
-\r
-               internal void Initialize (InstanceContext iCtx) {\r
-                       Message message = OperationContext.Current.IncomingMessage;\r
-                       IContextChannel channel = OperationContext.Current.Channel;\r
-                       if (dispatch_runtime.InstanceContextProvider != null) {\r
-                               dispatch_runtime.InstanceContextProvider.InitializeInstanceContext (iCtx,\r
-                                                                                                       message,\r
-                                                                                                       channel);\r
-                       }\r
-                       foreach (IInstanceContextInitializer init in dispatch_runtime.InstanceContextInitializers)\r
-                               init.Initialize (iCtx, message);                                        \r
-               }\r
-\r
-               internal object GetServiceInstance (InstanceContext ctx, Message m, ref bool createdByUserProvider) {\r
-                       if (dispatch_runtime.InstanceProvider != null) {\r
-                               createdByUserProvider = true;\r
-                               return dispatch_runtime.InstanceProvider.GetInstance (ctx, m);\r
-                       }\r
-                       createdByUserProvider = false;\r
-                       return Activator.CreateInstance (\r
-                               dispatch_runtime.ChannelDispatcher.Host.Description.ServiceType);                       \r
-               }\r
-\r
-               internal IInstanceContextProvider InstanceContextProvider {\r
-                       get {\r
-                               return dispatch_runtime.InstanceContextProvider;\r
-                       }\r
-               }\r
-\r
-               internal void ReleaseServiceInstance (InstanceContext ctx, object impl) \r
-               {\r
-                       if (ctx.IsUserProvidedInstance) {\r
-                               dispatch_runtime.InstanceProvider.ReleaseInstance (ctx, impl);\r
-                               \r
-                       }\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.ServiceModel;
+using System.ServiceModel.Dispatcher;
+using System.ServiceModel.Channels;
+using System.Text;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class InstanceBehavior
+       {
+               DispatchRuntime dispatch_runtime;
+
+               internal InstanceBehavior (DispatchRuntime runtime) {
+                       dispatch_runtime = runtime;
+               }
+
+               internal void Initialize (InstanceContext iCtx) {
+                       Message message = OperationContext.Current.IncomingMessage;
+                       IContextChannel channel = OperationContext.Current.Channel;
+                       if (dispatch_runtime.InstanceContextProvider != null) {
+                               dispatch_runtime.InstanceContextProvider.InitializeInstanceContext (iCtx,
+                                                                                                       message,
+                                                                                                       channel);
+                       }
+                       foreach (IInstanceContextInitializer init in dispatch_runtime.InstanceContextInitializers)
+                               init.Initialize (iCtx, message);                                        
+               }
+
+               internal object GetServiceInstance (InstanceContext ctx, Message m, ref bool createdByUserProvider) {
+                       if (dispatch_runtime.InstanceProvider != null) {
+                               createdByUserProvider = true;
+                               return dispatch_runtime.InstanceProvider.GetInstance (ctx, m);
+                       }
+                       createdByUserProvider = false;
+                       return Activator.CreateInstance (
+                               dispatch_runtime.ChannelDispatcher.Host.Description.ServiceType);                       
+               }
+
+               internal IInstanceContextProvider InstanceContextProvider {
+                       get {
+                               return dispatch_runtime.InstanceContextProvider;
+                       }
+               }
+
+               internal void ReleaseServiceInstance (InstanceContext ctx, object impl) 
+               {
+                       if (ctx.IsUserProvidedInstance) {
+                               dispatch_runtime.InstanceProvider.ReleaseInstance (ctx, impl);
+                               
+                       }
+               }
+       }
+}
index 97d81aad7a21fac2fc4c6cc8f61dce97e9386a30..42349e86da6f563dc79f7084373492e24be4bae9 100644 (file)
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Channels;\r
-\r
-namespace System.ServiceModel.Dispatcher \r
-{\r
-       internal class MessageProcessingContext \r
-       {\r
-               OperationContext operation_context;\r
-               RequestContext request_context;\r
-               Message incoming_message;\r
-\r
-               Message reply_message;          \r
-               InstanceContext instance_context;               \r
-               Exception processingException;\r
-               DispatchOperation operation;\r
-               UserEventsHandler user_events_handler;          \r
-\r
-               public MessageProcessingContext (OperationContext opCtx)\r
-               {\r
-                       operation_context = opCtx;\r
-                       request_context = opCtx.RequestContext;\r
-                       incoming_message = opCtx.IncomingMessage;\r
-                       user_events_handler = new UserEventsHandler (this);\r
-               }\r
-\r
-               public DispatchOperation Operation\r
-               {\r
-                       get { return operation; }\r
-                       set { operation = value; }\r
-               }\r
-\r
-               public Exception ProcessingException\r
-               {\r
-                       get { return processingException; }\r
-                       set { processingException = value; }\r
-               }\r
-               \r
-               public Message ReplyMessage\r
-               {\r
-                       get { return reply_message; }\r
-                       set { reply_message = value; }\r
-               }\r
-\r
-               public InstanceContext InstanceContext\r
-               {\r
-                       get { return instance_context; }\r
-                       set { instance_context = value; }\r
-               }\r
-\r
-               public Message IncomingMessage\r
-               {\r
-                       get { return incoming_message; }\r
-                       set { incoming_message = value; }\r
-               }\r
-\r
-               public RequestContext RequestContext\r
-               {\r
-                       get { return request_context; }\r
-                       set { request_context = value; }\r
-               }\r
-\r
-               public OperationContext OperationContext\r
-               {\r
-                       get { return operation_context; }\r
-                       set { operation_context = value; }\r
-               }\r
-\r
-               public UserEventsHandler EventsHandler\r
-               {\r
-                       get { return user_events_handler; }\r
-                       set { user_events_handler = value; }\r
-               }\r
-\r
-               public void Reply (IDuplexChannel channel, bool useTimeout)\r
-               {\r
-                       EventsHandler.BeforeSendReply ();\r
-                       if (useTimeout)\r
-                               channel.Send (ReplyMessage, Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);\r
-                       else\r
-                               channel.Send (ReplyMessage);\r
-               }\r
-\r
-               public void Reply (bool useTimeout)\r
-               {\r
-                       EventsHandler.BeforeSendReply ();\r
-                       if (useTimeout)\r
-                               RequestContext.Reply (ReplyMessage, Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);\r
-                       else\r
-                               RequestContext.Reply (ReplyMessage);\r
-               }\r
-       }\r
-\r
-       #region user events implementation\r
-\r
-       internal class UserEventsHandler\r
-       {\r
-               MessageProcessingContext request_context;\r
-               DispatchRuntime dispatch_runtime;\r
-               IClientChannel channel;\r
-               object [] msg_inspectors_states;\r
-               object [] callcontext_initializers_states;\r
-\r
-               public UserEventsHandler (MessageProcessingContext mrc)\r
-               {\r
-                       request_context = mrc;\r
-                       dispatch_runtime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       msg_inspectors_states = new object [dispatch_runtime.MessageInspectors.Count];\r
-                       channel = request_context.OperationContext.Channel as IClientChannel;\r
-               }\r
-\r
-               public void AfterReceiveRequest ()\r
-               {\r
-                       Message message = request_context.IncomingMessage;\r
-\r
-                       for (int i = 0; i < dispatch_runtime.MessageInspectors.Count; ++i)\r
-                               msg_inspectors_states [i] = dispatch_runtime.MessageInspectors [i].AfterReceiveRequest (\r
-                                          ref message, channel, request_context.InstanceContext);\r
-                       request_context.IncomingMessage = message;\r
-\r
-               }\r
-\r
-               public void BeforeSendReply ()\r
-               {\r
-                       Message toBeChanged = request_context.ReplyMessage;\r
-                       for (int i = 0; i < dispatch_runtime.MessageInspectors.Count; ++i)\r
-                               dispatch_runtime.MessageInspectors [i].BeforeSendReply (ref toBeChanged, msg_inspectors_states [i]);\r
-               }\r
-\r
-               public void BeforeInvoke (DispatchOperation operation)\r
-               {\r
-                       callcontext_initializers_states = new object [operation.CallContextInitializers.Count];\r
-                       for (int i = 0; i < callcontext_initializers_states.Length; ++i)\r
-                               callcontext_initializers_states [i] = operation.CallContextInitializers [i].BeforeInvoke (\r
-                                       request_context.InstanceContext, channel, request_context.IncomingMessage);\r
-\r
-               }\r
-\r
-               public void AfterInvoke (DispatchOperation operation)\r
-               {\r
-                       for (int i = 0; i < callcontext_initializers_states.Length; ++i)\r
-                               operation.CallContextInitializers [i].AfterInvoke (callcontext_initializers_states [i]);\r
-               }\r
-       }\r
-\r
-       #endregion\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+
+namespace System.ServiceModel.Dispatcher 
+{
+       internal class MessageProcessingContext 
+       {
+               OperationContext operation_context;
+               RequestContext request_context;
+               Message incoming_message;
+
+               Message reply_message;          
+               InstanceContext instance_context;               
+               Exception processingException;
+               DispatchOperation operation;
+               UserEventsHandler user_events_handler;          
+
+               public MessageProcessingContext (OperationContext opCtx)
+               {
+                       operation_context = opCtx;
+                       request_context = opCtx.RequestContext;
+                       incoming_message = opCtx.IncomingMessage;
+                       user_events_handler = new UserEventsHandler (this);
+               }
+
+               public DispatchOperation Operation
+               {
+                       get { return operation; }
+                       set { operation = value; }
+               }
+
+               public Exception ProcessingException
+               {
+                       get { return processingException; }
+                       set { processingException = value; }
+               }
+               
+               public Message ReplyMessage
+               {
+                       get { return reply_message; }
+                       set { reply_message = value; }
+               }
+
+               public InstanceContext InstanceContext
+               {
+                       get { return instance_context; }
+                       set { instance_context = value; }
+               }
+
+               public Message IncomingMessage
+               {
+                       get { return incoming_message; }
+                       set { incoming_message = value; }
+               }
+
+               public RequestContext RequestContext
+               {
+                       get { return request_context; }
+                       set { request_context = value; }
+               }
+
+               public OperationContext OperationContext
+               {
+                       get { return operation_context; }
+                       set { operation_context = value; }
+               }
+
+               public UserEventsHandler EventsHandler
+               {
+                       get { return user_events_handler; }
+                       set { user_events_handler = value; }
+               }
+
+               public void Reply (IDuplexChannel channel, bool useTimeout)
+               {
+                       EventsHandler.BeforeSendReply ();
+                       if (useTimeout)
+                               channel.Send (ReplyMessage, Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);
+                       else
+                               channel.Send (ReplyMessage);
+               }
+
+               public void Reply (bool useTimeout)
+               {
+                       EventsHandler.BeforeSendReply ();
+                       if (useTimeout)
+                               RequestContext.Reply (ReplyMessage, Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);
+                       else
+                               RequestContext.Reply (ReplyMessage);
+               }
+       }
+
+       #region user events implementation
+
+       internal class UserEventsHandler
+       {
+               MessageProcessingContext request_context;
+               DispatchRuntime dispatch_runtime;
+               IClientChannel channel;
+               object [] msg_inspectors_states;
+               object [] callcontext_initializers_states;
+
+               public UserEventsHandler (MessageProcessingContext mrc)
+               {
+                       request_context = mrc;
+                       dispatch_runtime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       msg_inspectors_states = new object [dispatch_runtime.MessageInspectors.Count];
+                       channel = request_context.OperationContext.Channel as IClientChannel;
+               }
+
+               public void AfterReceiveRequest ()
+               {
+                       Message message = request_context.IncomingMessage;
+
+                       for (int i = 0; i < dispatch_runtime.MessageInspectors.Count; ++i)
+                               msg_inspectors_states [i] = dispatch_runtime.MessageInspectors [i].AfterReceiveRequest (
+                                          ref message, channel, request_context.InstanceContext);
+                       request_context.IncomingMessage = message;
+
+               }
+
+               public void BeforeSendReply ()
+               {
+                       Message toBeChanged = request_context.ReplyMessage;
+                       for (int i = 0; i < dispatch_runtime.MessageInspectors.Count; ++i)
+                               dispatch_runtime.MessageInspectors [i].BeforeSendReply (ref toBeChanged, msg_inspectors_states [i]);
+               }
+
+               public void BeforeInvoke (DispatchOperation operation)
+               {
+                       callcontext_initializers_states = new object [operation.CallContextInitializers.Count];
+                       for (int i = 0; i < callcontext_initializers_states.Length; ++i)
+                               callcontext_initializers_states [i] = operation.CallContextInitializers [i].BeforeInvoke (
+                                       request_context.InstanceContext, channel, request_context.IncomingMessage);
+
+               }
+
+               public void AfterInvoke (DispatchOperation operation)
+               {
+                       for (int i = 0; i < callcontext_initializers_states.Length; ++i)
+                               operation.CallContextInitializers [i].AfterInvoke (callcontext_initializers_states [i]);
+               }
+       }
+
+       #endregion
+}
index 77c7fd8739f90e58732e2226fb12b25ea524c103..768c4c19a9c5c9f62831e08885cb6a86e326274f 100644 (file)
@@ -1,21 +1,21 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class OperationContextScopeHandler : BaseRequestProcessorHandler\r
-       {\r
-               public override void ProcessRequestChain (MessageProcessingContext mrc)\r
-               {\r
-                       using (new OperationContextScope (mrc.OperationContext)) {\r
-                               base.ProcessRequestChain (mrc);\r
-                       }\r
-               }\r
-\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       return false;\r
-               }               \r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class OperationContextScopeHandler : BaseRequestProcessorHandler
+       {
+               public override void ProcessRequestChain (MessageProcessingContext mrc)
+               {
+                       using (new OperationContextScope (mrc.OperationContext)) {
+                               base.ProcessRequestChain (mrc);
+                       }
+               }
+
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       return false;
+               }               
+       }
+}
index 1bab61a5827e5d7dfc8300fc3dba5c5c737d2214..413a8bd582243c8fb848fb56a7d7bead1ed784ac 100644 (file)
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-using System.Reflection;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class OperationInvokerHandler : BaseRequestProcessorHandler\r
-       {\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {                       \r
-                       RequestContext rc = mrc.RequestContext;\r
-                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       DispatchOperation operation = GetOperation (mrc.IncomingMessage, dispatchRuntime);\r
-                       mrc.Operation = operation;\r
-                       try {                           \r
-                               DoProcessRequest (mrc);\r
-                               if (!operation.Invoker.IsSynchronous)\r
-                                       return true;\r
-                       } catch (TargetInvocationException ex) {\r
-                               mrc.ReplyMessage = BuildExceptionMessage (mrc.IncomingMessage, ex.InnerException, \r
-                                       dispatchRuntime.ChannelDispatcher.IncludeExceptionDetailInFaults);\r
-                       }\r
-                       return false;\r
-               }\r
-\r
-               void DoProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       DispatchOperation operation = mrc.Operation;\r
-                       Message req = mrc.IncomingMessage;\r
-                       object instance = mrc.InstanceContext.GetServiceInstance(req);\r
-                       object [] parameters;                   \r
-                       BuildInvokeParams (mrc, out parameters);\r
-\r
-                       if (operation.Invoker.IsSynchronous) {\r
-                               object result = operation.Invoker.Invoke (instance, parameters);\r
-                               HandleInvokeResult (mrc, parameters, result);\r
-                       } else {// asynchronous\r
-                               InvokeAsynchronous (mrc, instance, parameters);\r
-                       }                       \r
-               }\r
-\r
-               void InvokeAsynchronous (MessageProcessingContext mrc, object instance, object [] parameters)\r
-               {\r
-                       DispatchOperation operation = mrc.Operation;\r
-                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       operation.Invoker.InvokeBegin (instance, parameters,\r
-                                       delegate (IAsyncResult res) {                                           \r
-                                               try {\r
-                                                       object result;\r
-                                                       result = operation.Invoker.InvokeEnd (instance, out parameters, res);\r
-                                                       HandleInvokeResult (mrc, parameters, result);\r
-                                                       mrc.Reply (true);\r
-                                               } catch (Exception ex) {\r
-                                                       mrc.ReplyMessage = BuildExceptionMessage (mrc.IncomingMessage, ex, dispatchRuntime.ChannelDispatcher.IncludeExceptionDetailInFaults);\r
-                                                       mrc.Reply (false);\r
-                                               }                               \r
-                                       },\r
-                                       null);                  \r
-               }\r
-\r
-               DispatchOperation GetOperation (Message input, DispatchRuntime dispatchRuntime)\r
-               {\r
-                       if (dispatchRuntime.OperationSelector != null) {\r
-                               string name = dispatchRuntime.OperationSelector.SelectOperation (ref input);\r
-                               foreach (DispatchOperation d in dispatchRuntime.Operations)\r
-                                       if (d.Name == name)\r
-                                               return d;\r
-                       } else {\r
-                               string action = input.Headers.Action;\r
-                               foreach (DispatchOperation d in dispatchRuntime.Operations)\r
-                                       if (d.Action == action)\r
-                                               return d;\r
-                       }\r
-                       return dispatchRuntime.UnhandledDispatchOperation;\r
-               }\r
-\r
-               void HandleInvokeResult (MessageProcessingContext mrc, object [] outputs, object result)\r
-               {\r
-                       DispatchOperation operation = mrc.Operation;\r
-                       mrc.EventsHandler.AfterInvoke (operation);\r
-\r
-                       Message res = null;\r
-                       if (operation.SerializeReply)\r
-                               res = operation.Formatter.SerializeReply (\r
-                                       mrc.OperationContext.EndpointDispatcher.ChannelDispatcher.MessageVersion, outputs, result);\r
-                       else\r
-                               res = (Message) result;\r
-                       res.Headers.CopyHeadersFrom (mrc.OperationContext.OutgoingMessageHeaders);\r
-                       res.Properties.CopyProperties (mrc.OperationContext.OutgoingMessageProperties);\r
-                       mrc.ReplyMessage = res;\r
-               }\r
-\r
-               Message CreateActionNotSupported (Message req)\r
-               {\r
-                       FaultCode fc = new FaultCode (\r
-                               req.Version.Addressing.ActionNotSupported,\r
-                               req.Version.Addressing.Namespace);\r
-                       // FIXME: set correct namespace URI\r
-                       return Message.CreateMessage (req.Version, fc,\r
-                               String.Format ("action '{0}' is not supported in this service contract.", req.Headers.Action), String.Empty);\r
-               }\r
-\r
-               void BuildInvokeParams (MessageProcessingContext mrc, out object [] parameters)\r
-               {\r
-                       DispatchOperation operation = mrc.Operation;\r
-                       EnsureValid (operation);\r
-\r
-                       if (operation.DeserializeRequest) {\r
-                               parameters = operation.Invoker.AllocateParameters ();\r
-                               operation.Formatter.DeserializeRequest (mrc.IncomingMessage, parameters);\r
-                       } else\r
-                               parameters = new object [] { mrc.IncomingMessage };\r
-\r
-                       mrc.EventsHandler.BeforeInvoke (operation);\r
-               }\r
-\r
-               Message BuildExceptionMessage (Message req, Exception ex, bool includeDetailsInFault)\r
-               {                       \r
-                       // FIXME: set correct name\r
-                       FaultCode fc = new FaultCode (\r
-                               "InternalServiceFault",\r
-                               req.Version.Addressing.Namespace);\r
-\r
-\r
-                       if (includeDetailsInFault) {\r
-                               return Message.CreateMessage (req.Version, fc, ex.Message, new ExceptionDetail (ex), req.Headers.Action);\r
-                       }\r
-                       // MS returns: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.";\r
-                       //\r
-                       string faultString =\r
-                               @"The server was unable to process the request due to an internal error.  The server may be able to return exception details (it depends on the server settings).";\r
-                       return Message.CreateMessage (req.Version, fc, faultString, req.Headers.Action);\r
-               }\r
-\r
-               void EnsureValid (DispatchOperation operation)\r
-               {\r
-                       if (operation.Invoker == null)\r
-                               throw new InvalidOperationException ("DispatchOperation requires Invoker.");\r
-                       if ((operation.DeserializeRequest || operation.SerializeReply) && operation.Formatter == null)\r
-                               throw new InvalidOperationException ("The DispatchOperation '" + operation.Name + "' requires Formatter, since DeserializeRequest and SerializeReply are not both false.");\r
-               }               \r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+using System.Reflection;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class OperationInvokerHandler : BaseRequestProcessorHandler
+       {
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {                       
+                       RequestContext rc = mrc.RequestContext;
+                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       DispatchOperation operation = GetOperation (mrc.IncomingMessage, dispatchRuntime);
+                       mrc.Operation = operation;
+                       try {                           
+                               DoProcessRequest (mrc);
+                               if (!operation.Invoker.IsSynchronous)
+                                       return true;
+                       } catch (TargetInvocationException ex) {
+                               mrc.ReplyMessage = BuildExceptionMessage (mrc.IncomingMessage, ex.InnerException, 
+                                       dispatchRuntime.ChannelDispatcher.IncludeExceptionDetailInFaults);
+                       }
+                       return false;
+               }
+
+               void DoProcessRequest (MessageProcessingContext mrc)
+               {
+                       DispatchOperation operation = mrc.Operation;
+                       Message req = mrc.IncomingMessage;
+                       object instance = mrc.InstanceContext.GetServiceInstance(req);
+                       object [] parameters;                   
+                       BuildInvokeParams (mrc, out parameters);
+
+                       if (operation.Invoker.IsSynchronous) {
+                               object result = operation.Invoker.Invoke (instance, parameters);
+                               HandleInvokeResult (mrc, parameters, result);
+                       } else {// asynchronous
+                               InvokeAsynchronous (mrc, instance, parameters);
+                       }                       
+               }
+
+               void InvokeAsynchronous (MessageProcessingContext mrc, object instance, object [] parameters)
+               {
+                       DispatchOperation operation = mrc.Operation;
+                       DispatchRuntime dispatchRuntime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       operation.Invoker.InvokeBegin (instance, parameters,
+                                       delegate (IAsyncResult res) {                                           
+                                               try {
+                                                       object result;
+                                                       result = operation.Invoker.InvokeEnd (instance, out parameters, res);
+                                                       HandleInvokeResult (mrc, parameters, result);
+                                                       mrc.Reply (true);
+                                               } catch (Exception ex) {
+                                                       mrc.ReplyMessage = BuildExceptionMessage (mrc.IncomingMessage, ex, dispatchRuntime.ChannelDispatcher.IncludeExceptionDetailInFaults);
+                                                       mrc.Reply (false);
+                                               }                               
+                                       },
+                                       null);                  
+               }
+
+               DispatchOperation GetOperation (Message input, DispatchRuntime dispatchRuntime)
+               {
+                       if (dispatchRuntime.OperationSelector != null) {
+                               string name = dispatchRuntime.OperationSelector.SelectOperation (ref input);
+                               foreach (DispatchOperation d in dispatchRuntime.Operations)
+                                       if (d.Name == name)
+                                               return d;
+                       } else {
+                               string action = input.Headers.Action;
+                               foreach (DispatchOperation d in dispatchRuntime.Operations)
+                                       if (d.Action == action)
+                                               return d;
+                       }
+                       return dispatchRuntime.UnhandledDispatchOperation;
+               }
+
+               void HandleInvokeResult (MessageProcessingContext mrc, object [] outputs, object result)
+               {
+                       DispatchOperation operation = mrc.Operation;
+                       mrc.EventsHandler.AfterInvoke (operation);
+
+                       Message res = null;
+                       if (operation.SerializeReply)
+                               res = operation.Formatter.SerializeReply (
+                                       mrc.OperationContext.EndpointDispatcher.ChannelDispatcher.MessageVersion, outputs, result);
+                       else
+                               res = (Message) result;
+                       res.Headers.CopyHeadersFrom (mrc.OperationContext.OutgoingMessageHeaders);
+                       res.Properties.CopyProperties (mrc.OperationContext.OutgoingMessageProperties);
+                       mrc.ReplyMessage = res;
+               }
+
+               Message CreateActionNotSupported (Message req)
+               {
+                       FaultCode fc = new FaultCode (
+                               req.Version.Addressing.ActionNotSupported,
+                               req.Version.Addressing.Namespace);
+                       // FIXME: set correct namespace URI
+                       return Message.CreateMessage (req.Version, fc,
+                               String.Format ("action '{0}' is not supported in this service contract.", req.Headers.Action), String.Empty);
+               }
+
+               void BuildInvokeParams (MessageProcessingContext mrc, out object [] parameters)
+               {
+                       DispatchOperation operation = mrc.Operation;
+                       EnsureValid (operation);
+
+                       if (operation.DeserializeRequest) {
+                               parameters = operation.Invoker.AllocateParameters ();
+                               operation.Formatter.DeserializeRequest (mrc.IncomingMessage, parameters);
+                       } else
+                               parameters = new object [] { mrc.IncomingMessage };
+
+                       mrc.EventsHandler.BeforeInvoke (operation);
+               }
+
+               Message BuildExceptionMessage (Message req, Exception ex, bool includeDetailsInFault)
+               {                       
+                       // FIXME: set correct name
+                       FaultCode fc = new FaultCode (
+                               "InternalServiceFault",
+                               req.Version.Addressing.Namespace);
+
+
+                       if (includeDetailsInFault) {
+                               return Message.CreateMessage (req.Version, fc, ex.Message, new ExceptionDetail (ex), req.Headers.Action);
+                       }
+                       // MS returns: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.";
+                       //
+                       string faultString =
+                               @"The server was unable to process the request due to an internal error.  The server may be able to return exception details (it depends on the server settings).";
+                       return Message.CreateMessage (req.Version, fc, faultString, req.Headers.Action);
+               }
+
+               void EnsureValid (DispatchOperation operation)
+               {
+                       if (operation.Invoker == null)
+                               throw new InvalidOperationException ("DispatchOperation requires Invoker.");
+                       if ((operation.DeserializeRequest || operation.SerializeReply) && operation.Formatter == null)
+                               throw new InvalidOperationException ("The DispatchOperation '" + operation.Name + "' requires Formatter, since DeserializeRequest and SerializeReply are not both false.");
+               }               
+       }
+}
index b15581fc53d82fd2b74d8fed86ba3807ff6d3449..b522e28072ca83991ebeb68c652d2b2186a7fa63 100644 (file)
@@ -1,31 +1,31 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class PostReceiveRequestHandler : BaseRequestProcessorHandler\r
-       {\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       Message incomingMessage = mrc.IncomingMessage;\r
-                       EnsureInstanceContextOpen (mrc.InstanceContext);\r
-                       AfterReceiveRequest (ref incomingMessage, mrc);\r
-                       mrc.IncomingMessage = incomingMessage;\r
-                       return false;\r
-               }\r
-\r
-               void AfterReceiveRequest (ref Message message, MessageProcessingContext mrc)\r
-               {\r
-                       mrc.EventsHandler.AfterReceiveRequest ();\r
-               }\r
-\r
-               void EnsureInstanceContextOpen (InstanceContext ictx)\r
-               {\r
-                       if (ictx.State != CommunicationState.Opened)\r
-                               ictx.Open ();\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class PostReceiveRequestHandler : BaseRequestProcessorHandler
+       {
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       Message incomingMessage = mrc.IncomingMessage;
+                       EnsureInstanceContextOpen (mrc.InstanceContext);
+                       AfterReceiveRequest (ref incomingMessage, mrc);
+                       mrc.IncomingMessage = incomingMessage;
+                       return false;
+               }
+
+               void AfterReceiveRequest (ref Message message, MessageProcessingContext mrc)
+               {
+                       mrc.EventsHandler.AfterReceiveRequest ();
+               }
+
+               void EnsureInstanceContextOpen (InstanceContext ictx)
+               {
+                       if (ictx.State != CommunicationState.Opened)
+                               ictx.Open ();
+               }
+       }
+}
index b030b42ca3c5e6cc0e7d174f8767555edeb75d0b..51a3156e04a636bf5a69a92d63fe32baf1e15642 100644 (file)
@@ -1,27 +1,27 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class ReplyHandler : BaseRequestProcessorHandler\r
-       {\r
-               IDuplexChannel duplex;\r
-\r
-               public ReplyHandler (IChannel channel)\r
-               {\r
-                       duplex = channel as IDuplexChannel;\r
-               }\r
-\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       if (duplex != null)\r
-                               mrc.Reply (duplex, true);\r
-                       else\r
-                               mrc.Reply (true);\r
-                       return false;\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class ReplyHandler : BaseRequestProcessorHandler
+       {
+               IDuplexChannel duplex;
+
+               public ReplyHandler (IChannel channel)
+               {
+                       duplex = channel as IDuplexChannel;
+               }
+
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       if (duplex != null)
+                               mrc.Reply (duplex, true);
+                       else
+                               mrc.Reply (true);
+                       return false;
+               }
+       }
+}
index 519bf8a912184aca5105995bc04389a3fe3eacdc..57d41136e0c3d2850af8ff6134580702f0149ec6 100644 (file)
@@ -1,42 +1,42 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.ServiceModel.Channels;\r
-using System.ServiceModel;\r
-using System.ServiceModel.Security.Tokens;\r
-\r
-namespace System.ServiceModel.Dispatcher\r
-{\r
-       internal class SecurityHandler : BaseRequestProcessorHandler\r
-       {\r
-               protected override bool ProcessRequest (MessageProcessingContext mrc)\r
-               {\r
-                       DispatchRuntime dispatch_runtime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;\r
-                       Message negoResponce = null;\r
-                       // process WS-Trust based negotiation\r
-                       MessageSecurityBindingSupport support =\r
-                               dispatch_runtime.ChannelDispatcher.Listener.GetProperty<MessageSecurityBindingSupport> ();\r
-                       if (support != null && mrc.IncomingMessage.Headers.FindHeader ("Security", Constants.WssNamespace) < 0) {\r
-                               CommunicationSecurityTokenAuthenticator nego =\r
-                                       support.TokenAuthenticator as CommunicationSecurityTokenAuthenticator;\r
-                               if (nego != null)\r
-                                       negoResponce = nego.Communication.ProcessNegotiation (mrc.IncomingMessage);\r
-                       }\r
-\r
-                       if (negoResponce == null)\r
-                               return false;\r
-                       \r
-                       ReplyNegoResponse (mrc, negoResponce);\r
-                       return true;\r
-\r
-               }\r
-\r
-               void ReplyNegoResponse (MessageProcessingContext mrc, Message negoResponse)\r
-               {\r
-                       negoResponse.Headers.CopyHeadersFrom (mrc.OperationContext.OutgoingMessageHeaders);\r
-                       negoResponse.Properties.CopyProperties (mrc.OperationContext.OutgoingMessageProperties);                        \r
-                       mrc.RequestContext.Reply (negoResponse, mrc.Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);\r
-                       return;\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ServiceModel.Channels;
+using System.ServiceModel;
+using System.ServiceModel.Security.Tokens;
+
+namespace System.ServiceModel.Dispatcher
+{
+       internal class SecurityHandler : BaseRequestProcessorHandler
+       {
+               protected override bool ProcessRequest (MessageProcessingContext mrc)
+               {
+                       DispatchRuntime dispatch_runtime = mrc.OperationContext.EndpointDispatcher.DispatchRuntime;
+                       Message negoResponce = null;
+                       // process WS-Trust based negotiation
+                       MessageSecurityBindingSupport support =
+                               dispatch_runtime.ChannelDispatcher.Listener.GetProperty<MessageSecurityBindingSupport> ();
+                       if (support != null && mrc.IncomingMessage.Headers.FindHeader ("Security", Constants.WssNamespace) < 0) {
+                               CommunicationSecurityTokenAuthenticator nego =
+                                       support.TokenAuthenticator as CommunicationSecurityTokenAuthenticator;
+                               if (nego != null)
+                                       negoResponce = nego.Communication.ProcessNegotiation (mrc.IncomingMessage);
+                       }
+
+                       if (negoResponce == null)
+                               return false;
+                       
+                       ReplyNegoResponse (mrc, negoResponce);
+                       return true;
+
+               }
+
+               void ReplyNegoResponse (MessageProcessingContext mrc, Message negoResponse)
+               {
+                       negoResponse.Headers.CopyHeadersFrom (mrc.OperationContext.OutgoingMessageHeaders);
+                       negoResponse.Properties.CopyProperties (mrc.OperationContext.OutgoingMessageProperties);                        
+                       mrc.RequestContext.Reply (negoResponse, mrc.Operation.Parent.ChannelDispatcher.timeouts.SendTimeout);
+                       return;
+               }
+       }
+}
index 8370a97718476abb1276cb1a0644a25f1279dc4c..414afd483621b6f99d1d96d2dff63798d36d6eab 100644 (file)
@@ -1,36 +1,36 @@
-// \r
-// PeerSecuritySettings.cs\r
-// \r
-// Author: \r
-//     Marcos Cobena (marcoscobena@gmail.com)\r
-// \r
-// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)\r
-// \r
-\r
-using System;\r
-\r
-namespace System.ServiceModel\r
-{\r
-       public class PeerSecuritySettings\r
-       {\r
-               SecurityMode mode;\r
-               \r
-               public PeerSecuritySettings ()\r
-               {\r
-                       Transport = new PeerTransportSecuritySettings ();\r
-               }\r
-               \r
-               public SecurityMode Mode {\r
-                       get { return mode; }\r
-                       set { mode = value; }\r
-               }\r
-\r
-               public PeerTransportSecuritySettings Transport { get; private set; }\r
-\r
-               internal void CopyTo (PeerSecuritySettings other)\r
-               {\r
-                       other.mode = mode;\r
-                       other.Transport.CredentialType = Transport.CredentialType;\r
-               }\r
-       }\r
-}\r
+// 
+// PeerSecuritySettings.cs
+// 
+// Author: 
+//     Marcos Cobena (marcoscobena@gmail.com)
+// 
+// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
+// 
+
+using System;
+
+namespace System.ServiceModel
+{
+       public class PeerSecuritySettings
+       {
+               SecurityMode mode;
+               
+               public PeerSecuritySettings ()
+               {
+                       Transport = new PeerTransportSecuritySettings ();
+               }
+               
+               public SecurityMode Mode {
+                       get { return mode; }
+                       set { mode = value; }
+               }
+
+               public PeerTransportSecuritySettings Transport { get; private set; }
+
+               internal void CopyTo (PeerSecuritySettings other)
+               {
+                       other.mode = mode;
+                       other.Transport.CredentialType = Transport.CredentialType;
+               }
+       }
+}
index acbc89a71d8cd9c9b49ce13098987182792430c0..05503002f87e704f216ab0cb9b48ffe29b5b956c 100644 (file)
@@ -1,59 +1,59 @@
-//\r
-// ReliableMessagingVersion.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel\r
-{\r
-       [MonoTODO]\r
-       public abstract class ReliableMessagingVersion\r
-       {\r
-               static ReliableMessagingVersion _default = new FakeReliableMessagingVersion ();\r
-               static ReliableMessagingVersion _wsReliableMessaging11 = new FakeReliableMessagingVersion ();\r
-               static ReliableMessagingVersion _wsReliableMessagingFebruary2005 = new FakeReliableMessagingVersion ();\r
-\r
-               public static ReliableMessagingVersion Default {\r
-                       get { return _default; }\r
-               }\r
-\r
-               public static ReliableMessagingVersion WSReliableMessaging11 {\r
-                       get { return _wsReliableMessaging11; }\r
-               }\r
-\r
-               public static ReliableMessagingVersion WSReliableMessagingFebruary2005 {\r
-                       get { return _wsReliableMessagingFebruary2005; }\r
-               }\r
-\r
-               [MonoTODO ("must be replaces with a correct implementation")]\r
-               class FakeReliableMessagingVersion : ReliableMessagingVersion\r
-               {\r
-               }\r
-       }\r
-}\r
+//
+// ReliableMessagingVersion.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel
+{
+       [MonoTODO]
+       public abstract class ReliableMessagingVersion
+       {
+               static ReliableMessagingVersion _default = new FakeReliableMessagingVersion ();
+               static ReliableMessagingVersion _wsReliableMessaging11 = new FakeReliableMessagingVersion ();
+               static ReliableMessagingVersion _wsReliableMessagingFebruary2005 = new FakeReliableMessagingVersion ();
+
+               public static ReliableMessagingVersion Default {
+                       get { return _default; }
+               }
+
+               public static ReliableMessagingVersion WSReliableMessaging11 {
+                       get { return _wsReliableMessaging11; }
+               }
+
+               public static ReliableMessagingVersion WSReliableMessagingFebruary2005 {
+                       get { return _wsReliableMessagingFebruary2005; }
+               }
+
+               [MonoTODO ("must be replaces with a correct implementation")]
+               class FakeReliableMessagingVersion : ReliableMessagingVersion
+               {
+               }
+       }
+}
index 6c5cde99e5da31e1027ab5540ee69f971a8ca55d..5ec459d54f57c163c6512a7853cedf2938b8227d 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007FederationHttpBinding.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel\r
-{\r
-       [MonoTODO]\r
-       public class WS2007FederationHttpBinding : WSFederationHttpBinding\r
-       {\r
-       }\r
-}\r
+//
+// WS2007FederationHttpBinding.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel
+{
+       [MonoTODO]
+       public class WS2007FederationHttpBinding : WSFederationHttpBinding
+       {
+       }
+}
index 04c876e75e2ca29b177e2c3d8e1f9ae7f8e0c26b..08cc64629108a26187fb0bba87082b50da1bf98a 100644 (file)
@@ -1,39 +1,39 @@
-//\r
-// WS2007HttpBinding.cs\r
-//\r
-// Author:\r
-//     Igor Zelmanovich <igorz@mainsoft.com>\r
-//\r
-// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-\r
-namespace System.ServiceModel\r
-{\r
-       [MonoTODO]\r
-       public class WS2007HttpBinding : WSHttpBinding\r
-       {\r
-       }\r
-}\r
+//
+// WS2007HttpBinding.cs
+//
+// Author:
+//     Igor Zelmanovich <igorz@mainsoft.com>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.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.Collections.Generic;
+using System.Text;
+
+namespace System.ServiceModel
+{
+       [MonoTODO]
+       public class WS2007HttpBinding : WSHttpBinding
+       {
+       }
+}