/// <summary> /// Constructor that can be used for tests /// </summary> /// <param name="configSection"></param> public FileSystemProviderManager(IFileSystemProvidersSection configSection) { if (configSection == null) { throw new ArgumentNullException("configSection"); } _config = configSection; CreateWellKnownFileSystems(); }
/// <summary> /// Default constructor that will read the config from the locally found config section /// </summary> public FileSystemProviderManager() { _config = (FileSystemProvidersSection)ConfigurationManager.GetSection("umbracoConfiguration/FileSystemProviders"); CreateWellKnownFileSystems(); }