The Labs \ Source Viewer \ SSCLI \ System.Configuration.Internal \ ConfigurationManagerInternal

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ConfigurationManagerInternal.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Configuration.Internal
  16. {
  17.    
  18.     using System.Configuration;
  19.    
  20.     internal sealed class ConfigurationManagerInternal : IConfigurationManagerInternal
  21.     {
  22.        
  23.         // Created only through reflection
  24.         private ConfigurationManagerInternal()
  25.         {
  26.         }
  27.        
  28.         bool IConfigurationManagerInternal.SupportsUserConfig {
  29.             get { return ConfigurationManager.SupportsUserConfig; }
  30.         }
  31.        
  32.         bool IConfigurationManagerInternal.SetConfigurationSystemInProgress {
  33.             get { return ConfigurationManager.SetConfigurationSystemInProgress; }
  34.         }
  35.        
  36.         string IConfigurationManagerInternal.MachineConfigPath {
  37.             get { return ClientConfigurationHost.MachineConfigFilePath; }
  38.         }
  39.        
  40.         string IConfigurationManagerInternal.ApplicationConfigUri {
  41.             get { return ClientConfigPaths.Current.ApplicationConfigUri; }
  42.         }
  43.        
  44.         string IConfigurationManagerInternal.ExeProductName {
  45.             get { return ClientConfigPaths.Current.ProductName; }
  46.         }
  47.        
  48.         string IConfigurationManagerInternal.ExeProductVersion {
  49.             get { return ClientConfigPaths.Current.ProductVersion; }
  50.         }
  51.        
  52.         string IConfigurationManagerInternal.ExeRoamingConfigDirectory {
  53.             get { return ClientConfigPaths.Current.RoamingConfigDirectory; }
  54.         }
  55.        
  56.         string IConfigurationManagerInternal.ExeRoamingConfigPath {
  57.             get { return ClientConfigPaths.Current.RoamingConfigFilename; }
  58.         }
  59.        
  60.         string IConfigurationManagerInternal.ExeLocalConfigDirectory {
  61.             get { return ClientConfigPaths.Current.LocalConfigDirectory; }
  62.         }
  63.        
  64.         string IConfigurationManagerInternal.ExeLocalConfigPath {
  65.             get { return ClientConfigPaths.Current.LocalConfigFilename; }
  66.         }
  67.        
  68.         string IConfigurationManagerInternal.UserConfigFilename {
  69.             get { return ClientConfigPaths.UserConfigFilename; }
  70.         }
  71.     }
  72. }

Developer Fusion