Author: gnorton
Date: 2007-02-20 20:22:09 -0500 (Tue, 20 Feb 2007)
New Revision: 73227

Modified:
   trunk/mcs/class/System/System.Net/AuthenticationManager.cs
   trunk/mcs/class/System/System.Net/ChangeLog
Log:
2007-02-18  Geoff Norton  <[EMAIL PROTECTED]>

        * AuthenticationManager.cs: Register the modules in the 2.0 profile
        when we create the ArrayList.



Modified: trunk/mcs/class/System/System.Net/AuthenticationManager.cs
===================================================================
--- trunk/mcs/class/System/System.Net/AuthenticationManager.cs  2007-02-21 
01:04:54 UTC (rev 73226)
+++ trunk/mcs/class/System/System.Net/AuthenticationManager.cs  2007-02-21 
01:22:09 UTC (rev 73227)
@@ -31,6 +31,9 @@
 
 using System.Collections;
 using System.Configuration;
+#if NET_2_0
+using System.Net.Configuration;
+#endif
 
 namespace System.Net
 {
@@ -50,7 +53,22 @@
                                        return;
                                
                                modules = new ArrayList ();
+#if NET_2_0 && CONFIGURATION_DEP
+                               object cfg = ConfigurationManager.GetSection 
("system.net/authenticationModules");
+                               AuthenticationModulesSection s = cfg as 
AuthenticationModulesSection;
+                               if (s != null) {
+                                       foreach (AuthenticationModuleElement 
element in s.AuthenticationModules) {
+                                               IAuthenticationModule module = 
null;
+                                               try {
+                                                       Type type = 
Type.GetType (element.Type, true);
+                                                       module = 
(IAuthenticationModule) Activator.CreateInstance (type);
+                                               } catch {}
+                                               modules.Add (module);
+                                       }
+                               }
+#else
                                ConfigurationSettings.GetConfig 
("system.net/authenticationModules");
+#endif
                        }
                }
                

Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2007-02-21 01:04:54 UTC (rev 
73226)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2007-02-21 01:22:09 UTC (rev 
73227)
@@ -1,3 +1,8 @@
+2007-02-18  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * AuthenticationManager.cs: Register the modules in the 2.0 profile
+       when we create the ArrayList.
+
 2007-02-01  Gert Driesen  <[EMAIL PROTECTED]>
 
        * WebProxy.cs: In IsBypassed, move address check back to satify unit

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to