ServicePoint: Use DateTime.UtcNow internally, which avoids looking up the timezone...
[mono.git] / mcs / class / System / System.Net.Configuration / AuthenticationModulesSection.cs
old mode 100755 (executable)
new mode 100644 (file)
index fde03e5..470aa20
@@ -3,9 +3,10 @@
 //
 // Authors:
 //     Tim Coleman (tim@timcoleman.com)
+//     Chris Toshok (toshok@ximian.com)
 //
 // Copyright (C) Tim Coleman, 2004
-// (c) 2004 Novell, Inc. (http://www.novell.com)
+// (C) 2004,2005 Novell, Inc. (http://www.novell.com)
 //
 
 //
@@ -29,7 +30,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 && XML_DEP
+#if CONFIGURATION_DEP
 
 using System.Configuration;
 
@@ -39,29 +40,37 @@ namespace System.Net.Configuration
        {
                #region Fields
 
-               ConfigurationPropertyCollection properties;
-               static ConfigurationProperty authenticationModules = new ConfigurationProperty ("AuthenticationModules", typeof (AuthenticationModuleElementCollection), new AuthenticationModuleElementCollection ());
+               static ConfigurationPropertyCollection properties;
+               static ConfigurationProperty authenticationModulesProp;
 
                #endregion // Fields
 
                #region Constructors
 
-               public AuthenticationModulesSection ()
+               static AuthenticationModulesSection ()
                {
+                       authenticationModulesProp = new ConfigurationProperty ("", typeof (AuthenticationModuleElementCollection),
+                                                                              null, ConfigurationPropertyOptions.IsDefaultCollection);
+                                                                              
                        properties = new ConfigurationPropertyCollection ();
-                       properties.Add (authenticationModules);
+                       properties.Add (authenticationModulesProp);
+               }
+
+               public AuthenticationModulesSection ()
+               {
                }
 
                #endregion // Constructors
 
                #region Properties
 
-               protected internal override ConfigurationPropertyCollection Properties {
+               protected override ConfigurationPropertyCollection Properties {
                        get { return properties; }
                }
 
+               [ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
                public AuthenticationModuleElementCollection AuthenticationModules {
-                       get { return (AuthenticationModuleElementCollection) base [authenticationModules]; }
+                       get { return (AuthenticationModuleElementCollection) base [authenticationModulesProp]; }
                }
 
                #endregion // Properties
@@ -69,15 +78,13 @@ namespace System.Net.Configuration
                #region Methods
 
                [MonoTODO]
-               protected internal override object GetRuntimeObject ()
+               protected override void PostDeserialize ()
                {
-                       throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               protected internal override void InitializeDefault ()
+               protected override void InitializeDefault ()
                {
-                       throw new NotImplementedException ();
                }
 
                #endregion // Methods