diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2006-12-01 12:14:45 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2006-12-01 12:14:45 +0300 |
commit | f865df02ccb2167e10adf060e8d0fa1dcf2248f8 (patch) | |
tree | 13708ffcaa5bf3e474fa2671a9c1fca3880933d7 /mcs/class/System.Web.Services/System.Web.Services.Configuration | |
parent | b6a1f08fbf7b741bf8fd3cf6caa4dfeff76cf4b6 (diff) |
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.
svn path=/branches/atsushi/mcs/; revision=68814
Diffstat (limited to 'mcs/class/System.Web.Services/System.Web.Services.Configuration')
5 files changed, 16 insertions, 15 deletions
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog index da1c643b568..4cae445d31f 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog @@ -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. diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ProtocolElement.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/ProtocolElement.cs index b000f73afeb..0cf5073e0a7 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ProtocolElement.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/ProtocolElement.cs @@ -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; } diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapEnvelopeProcessingElement.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapEnvelopeProcessingElement.cs index af5f6dd2206..d26407df671 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapEnvelopeProcessingElement.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapEnvelopeProcessingElement.cs @@ -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; } diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapExtensionTypeElement.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapExtensionTypeElement.cs index ba42331b95f..601645467dd 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapExtensionTypeElement.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/SoapExtensionTypeElement.cs @@ -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; } diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesSection.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesSection.cs index 964917f084c..7af63f8666b 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesSection.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesSection.cs @@ -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)); } } |