2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 1 Dec 2006 09:14:45 +0000 (09:14 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 1 Dec 2006 09:14:45 +0000 (09:14 -0000)
* WebServicesSection.cs : internal Instance -> public Current.
* SoapExtensionTypeElement.cs, SoapEnvelopeProcessingElement.cs,
  ProtocolElement.cs : fixed some property default values.

svn path=/branches/atsushi/mcs/; revision=68814

mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Configuration/ProtocolElement.cs
mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapEnvelopeProcessingElement.cs
mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapExtensionTypeElement.cs
mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesSection.cs

index da1c643b56886060119cfa144f7b726e8bcc28fe..4cae445d31f5edb32e41c8fd3cac91bef91b750e 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * WebServicesSection.cs : internal Instance -> public Current.
+       * SoapExtensionTypeElement.cs, SoapEnvelopeProcessingElement.cs,
+         ProtocolElement.cs : fixed some property default values.
+
 2006-01-09  Chris Toshok  <toshok@ximian.com>
 
        * SoapEnvelopeProcessingElement.cs: fix dumper output.
index b000f73afeb4d3034f1a13e30338a99498d7d1d1..0cf5073e0a72d7ae63d5acbaf3ccfe1e517a0e3c 100644 (file)
@@ -59,7 +59,7 @@ namespace System.Web.Services.Configuration {
                        this.Name = protocol;
                }
 
-               [ConfigurationProperty ("name", DefaultValue = "Unknown", Options = ConfigurationPropertyOptions.IsKey)]
+               [ConfigurationProperty ("name", DefaultValue = WebServiceProtocols.Unknown, Options = ConfigurationPropertyOptions.IsKey)]
                public WebServiceProtocols Name {
                        get { return (WebServiceProtocols) base [nameProp];}
                        set { base[nameProp] = value; }
index af5f6dd2206707184b96037046252228ed8b59df..d26407df671527ed93be293cc43e70d1f2e0778a 100644 (file)
@@ -70,14 +70,14 @@ namespace System.Web.Services.Configuration {
                {
                }
 
-               [ConfigurationProperty ("strict", DefaultValue = "False")]
+               [ConfigurationProperty ("strict", DefaultValue = false)]
                public bool IsStrict {
                        get { return (bool) base [strictProp];}
                        set { base[strictProp] = value; }
                }
 
                [TypeConverter (typeof (InfiniteIntConverter))]
-               [ConfigurationProperty ("readTimeout", DefaultValue = "2147483647")]
+               [ConfigurationProperty ("readTimeout", DefaultValue = int.MaxValue)]
                public int ReadTimeout {
                        get { return (int) base [readTimeoutProp];}
                        set { base[readTimeoutProp] = value; }
index ba42331b95fdf1b98b2a8a0ba60a4a9578d99ca1..601645467dd3601fd25cef4cd8ac95a4efab06ed 100644 (file)
@@ -76,14 +76,14 @@ namespace System.Web.Services.Configuration {
                {
                }
    
-               [ConfigurationProperty ("group", DefaultValue = "Low", Options = ConfigurationPropertyOptions.IsKey)]
+               [ConfigurationProperty ("group", DefaultValue = PriorityGroup.Low, Options = ConfigurationPropertyOptions.IsKey)]
                public PriorityGroup Group {
                        get { return (PriorityGroup) base [groupProp];}
                        set { base[groupProp] = value; }
                }
 
                [IntegerValidator]
-               [ConfigurationProperty ("priority", DefaultValue = "0", Options = ConfigurationPropertyOptions.IsKey)]
+               [ConfigurationProperty ("priority", DefaultValue = 0, Options = ConfigurationPropertyOptions.IsKey)]
                public int Priority {
                        get { return (int) base [priorityProp];}
                        set { base[priorityProp] = value; }
index 964917f084c9c3a505f5239b9c4163ba457212fe..7af63f8666bb041d7abfdb17ac789202536c9e8a 100644 (file)
@@ -91,9 +91,9 @@ namespace System.Web.Services.Configuration
 
                 }
 
-                public WebServicesSection GetSection (System.Configuration.Configuration config)
+                public static WebServicesSection GetSection (System.Configuration.Configuration config)
                 {
-                       return (WebServicesSection)config.GetSection ("webServices");
+                       return (WebServicesSection) config.GetSection ("webServices");
                 }
 
                protected override void InitializeDefault ()
@@ -110,11 +110,6 @@ namespace System.Web.Services.Configuration
                         get { return (WsiProfilesElementCollection) base [conformanceWarningsProp];}
                 }
 
-               [MonoTODO]
-                public WebServicesSection Current {
-                        get { throw new NotImplementedException (); }
-                }
-
                 public DiagnosticsElement Diagnostics {
                         get { return (DiagnosticsElement) base [diagnosticsProp]; }
                         set { base[diagnosticsProp] = value; }
@@ -183,13 +178,13 @@ namespace System.Web.Services.Configuration
                         get { return properties; }
                 }
 
-               internal static WebServicesSection Instance {
-                       get { return (WebServicesSection)WebConfigurationManager.GetWebApplicationSection ("system.web/webServices"); }
+               public static WebServicesSection Current {
+                       get { return (WebServicesSection) WebConfigurationManager.GetWebApplicationSection ("system.web/webServices"); }
                }
 
                internal static bool IsSupported (WebServiceProtocols proto)
                {
-                       return ((Instance.EnabledProtocols & proto) == proto && (proto != WebServiceProtocols.Unknown));
+                       return ((Current.EnabledProtocols & proto) == proto && (proto != WebServiceProtocols.Unknown));
                }
         }