+#if MOBILE
+ modules.Add (new NtlmClient ());
+ modules.Add (new DigestClient ());
+ modules.Add (new BasicClient ());
+#elif 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