C# Class Masonry.Core.Hosting.AggregateVirtualPathProvider

Virtual path provider used to provide resources from multiple sources.
Inheritance: System.Web.Hosting.VirtualPathProvider
Afficher le fichier Open project: DenisVuyka/Masonry Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IVirtualFileProvider fileProvider ) : void

Add a new file provider

AggregateVirtualPathProvider ( ) : System
FileExists ( string virtualPath ) : bool

Gets a value that indicates whether a file exists in the virtual file system.

GetCacheDependency ( string virtualPath, IEnumerable virtualPathDependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency

Creates a cache dependency based on the specified virtual paths.

GetCacheKey ( string virtualPath ) : string

Returns a cache key to use for the specified virtual path.

GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile

Gets a virtual file from the virtual file system.

GetFileHash ( string virtualPath, IEnumerable virtualPathDependencies ) : string

Returns a hash of the specified virtual paths.

Method Details

Add() public méthode

Add a new file provider
public Add ( IVirtualFileProvider fileProvider ) : void
fileProvider IVirtualFileProvider
Résultat void

AggregateVirtualPathProvider() public méthode

public AggregateVirtualPathProvider ( ) : System
Résultat System

FileExists() public méthode

Gets a value that indicates whether a file exists in the virtual file system.
public FileExists ( string virtualPath ) : bool
virtualPath string The path to the virtual file.
Résultat bool

GetCacheDependency() public méthode

Creates a cache dependency based on the specified virtual paths.
public GetCacheDependency ( string virtualPath, IEnumerable virtualPathDependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency
virtualPath string The path to the primary virtual resource.
virtualPathDependencies IEnumerable An array of paths to other resources required by the primary virtual resource.
utcStart System.DateTime The UTC time at which the virtual resources were read.
Résultat System.Web.Caching.CacheDependency

GetCacheKey() public méthode

Returns a cache key to use for the specified virtual path.
public GetCacheKey ( string virtualPath ) : string
virtualPath string The path to the virtual resource.
Résultat string

GetFile() public méthode

Gets a virtual file from the virtual file system.
public GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile
virtualPath string The path to the virtual file.
Résultat System.Web.Hosting.VirtualFile

GetFileHash() public méthode

Returns a hash of the specified virtual paths.
public GetFileHash ( string virtualPath, IEnumerable virtualPathDependencies ) : string
virtualPath string The path to the primary virtual resource.
virtualPathDependencies IEnumerable An array of paths to other virtual resources required by the primary virtual resource.
Résultat string