コード例 #1
0
        /// <summary>
        ///   Gets the IIS root, reading it from registry.
        /// </summary>
        private void GetIisRoot()
        {
            Debug.Assert(m_configuration != null && m_configuration.FoldersConfigurations != null);
            FolderConfiguration iis = m_configuration.FoldersConfigurations.IisFolder;

            Debug.Assert(iis != null);
            // if no folder set but is available (e.g. when starting new version
            // with old configuration)
            if (iis.IsAvailable && iis.Folder.Length == 0)
            {
                if (InetRootLocator.Instance.IsIisAvailable)
                {
                    iis.Folder = InetRootLocator.Instance.PathWwwRoot;
                }
                else
                {
                    iis.IsAvailable = false;
                }
            }
        }
コード例 #2
0
        /// <summary>
        ///   Gets the SourceSafe executable path, reading from registry.
        /// </summary>
        private void GetSourceSafePath()
        {
            Debug.Assert(m_configuration != null && m_configuration.FoldersConfigurations != null);
            FolderConfiguration ss = m_configuration.FoldersConfigurations.SourceSafeFolder;

            Debug.Assert(ss != null);
            // if no folder set but is available (e.g. when starting new version
            // with old configuration)
            if (ss.IsAvailable && ss.Folder.Length == 0)
            {
                if (SourceSafeLocator.Instance.IsSourceSafeAvailable)
                {
                    ss.Folder = SourceSafeLocator.Instance.SourceSafeRoot;
                }
                else
                {
                    ss.IsAvailable = false;
                }
            }
        }
コード例 #3
0
 public FoldersConfigurations()
 {
     m_sourceSafeFolder = new FolderConfiguration();
     m_iisFolder        = new FolderConfiguration();
 }