changing accessibility of ChangeConfigurationSystem to internal.
* Configuration.cs: Fixed compiler warnings.
* DpapiProtectedConfigurationProvider.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=85130
+2007-08-31 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * ConfigurationManager.cs: Fixed line endings. Avoid warning by
+ changing accessibility of ChangeConfigurationSystem to internal.
+ * Configuration.cs: Fixed compiler warnings.
+ * DpapiProtectedConfigurationProvider.cs: Fixed line endings.
+
2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ConfigurationManager.cs : To open exe configuration, use
try {
Save (stream, mode, forceUpdateAll);
system.Host.WriteCompleted (streamName, true, ctx);
- } catch (Exception ex) {
+ } catch (Exception) {
system.Host.WriteCompleted (streamName, false, ctx);
throw;
} finally {
public void SaveAs (string filename, ConfigurationSaveMode mode)
{
SaveAs (filename, mode, false);
- }\r
-\r
+ }
+
[MonoInternalNote ("Detect if file has changed")]
public void SaveAs (string filename, ConfigurationSaveMode mode, bool forceUpdateAll)
{
try {
stream = system.Host.OpenStreamForRead (streamName);
- } catch (Exception e) {
+ } catch (Exception) {
return false;
}
}
return ConfigurationFactory.Create (typeof(ExeConfigurationHost), map, userLevel);
- }\r
-\r
-#if TARGET_JVM\r
- [MonoLimitation ("Supported only when the userLevel parameter is set to ConfigurationUserLevel.None. Other values are not supported because Environment.GetFolderPath method is not implemented.")]\r
-#endif\r
+ }
+
+#if TARGET_JVM
+ [MonoLimitation ("Supported only when the userLevel parameter is set to ConfigurationUserLevel.None. Other values are not supported because Environment.GetFolderPath method is not implemented.")]
+#endif
public static Configuration OpenExeConfiguration (ConfigurationUserLevel userLevel)
{
return OpenExeConfigurationInternal (userLevel, Assembly.GetEntryAssembly () ?? Assembly.GetCallingAssembly (), null);
}
/* invoked from System.Web */
- static IInternalConfigSystem ChangeConfigurationSystem (IInternalConfigSystem newSystem)
+ internal static IInternalConfigSystem ChangeConfigurationSystem (IInternalConfigSystem newSystem)
{
if (newSystem == null)
throw new ArgumentNullException ("newSystem");
{
public sealed class DpapiProtectedConfigurationProvider: ProtectedConfigurationProvider
{
- bool useMachineProtection;\r
+ bool useMachineProtection;
const string NotSupportedReason = @"DpapiProtectedConfigurationProvider depends on the Microsoft Data
Protection API, and is unimplemented in Mono. For portability's sake,
-it is suggested that you use the RsaProtectedConfigurationProvider.";\r
+it is suggested that you use the RsaProtectedConfigurationProvider.";
[MonoNotSupported (NotSupportedReason)]
public override XmlNode Decrypt (XmlNode encrypted_node)
- {\r
+ {
throw new NotSupportedException (NotSupportedReason);
- }\r
-\r
+ }
+
[MonoNotSupported (NotSupportedReason)]
public override XmlNode Encrypt (XmlNode node)
- {\r
+ {
throw new NotSupportedException (NotSupportedReason);
}
string flag;
- flag = configurationValues ["useMachineProtection"];\r
- if (flag != null && flag.ToLowerInvariant () == "true")\r
+ flag = configurationValues ["useMachineProtection"];
+ if (flag != null && flag.ToLowerInvariant () == "true")
useMachineProtection = true;
}