C# Class Orchard.FileSystems.Dependencies.DefaultExtensionDependenciesManager

Similar to "Dependencies.xml" file, except we also store "GetFileHash" result for every VirtualPath entry. This is so that if any virtual path reference in the file changes, the file stored by this component will also change.
Inheritance: IExtensionDependenciesManager
Show file Open project: ucdavis/Orchard

Private Properties

Property Type Description
CreateDocument System.Xml.Linq.XDocument
IsSupportedLoader bool
ReadDescriptors IEnumerable
ReadDocument System.Xml.Linq.XDocument
WriteDocument void

Public Methods

Method Description
DefaultExtensionDependenciesManager ( ICacheManager cacheManager, IAppDataFolder appDataFolder ) : System
GetDescriptor ( string extensionId ) : Orchard.FileSystems.Dependencies.ActivatedExtensionDescriptor
GetVirtualPathDependencies ( string extensionId ) : IEnumerable
LoadDescriptors ( ) : IEnumerable
StoreDependencies ( IEnumerable dependencyDescriptors, string>.Func fileHashProvider ) : void

Private Methods

Method Description
CreateDocument ( IEnumerable dependencies, string>.Func fileHashProvider ) : System.Xml.Linq.XDocument
IsSupportedLoader ( string loaderName ) : bool
ReadDescriptors ( string persistancePath ) : IEnumerable
ReadDocument ( string persistancePath ) : System.Xml.Linq.XDocument
WriteDocument ( string persistancePath, System.Xml.Linq.XDocument document ) : void

Method Details

DefaultExtensionDependenciesManager() public method

public DefaultExtensionDependenciesManager ( ICacheManager cacheManager, IAppDataFolder appDataFolder ) : System
cacheManager ICacheManager
appDataFolder IAppDataFolder
return System

GetDescriptor() public method

public GetDescriptor ( string extensionId ) : Orchard.FileSystems.Dependencies.ActivatedExtensionDescriptor
extensionId string
return Orchard.FileSystems.Dependencies.ActivatedExtensionDescriptor

GetVirtualPathDependencies() public method

public GetVirtualPathDependencies ( string extensionId ) : IEnumerable
extensionId string
return IEnumerable

LoadDescriptors() public method

public LoadDescriptors ( ) : IEnumerable
return IEnumerable

StoreDependencies() public method

public StoreDependencies ( IEnumerable dependencyDescriptors, string>.Func fileHashProvider ) : void
dependencyDescriptors IEnumerable
fileHashProvider string>.Func
return void