C# Class van.Web.Core.ContentFilesManager

The content files manager is the get request repository for the css and javascript files. It was made into a factory class so that it can be stubbed out in required tests.
Inheritance: IContentFilesManager
Afficher le fichier Open project: zachariahyoung/virtualaltnet

Méthodes publiques

Méthode Description
ContentFilesManager ( IAppSettings appSettings ) : System

Initializes a new instance of the ContentFilesManager class.

GetFiles ( ContentFilesType filesType, int id ) : ICollection

Get either the css or javascript files. Content will be filter based on the browser requesting the content if the browser attributes are set within the configuration file.

Private Methods

Méthode Description
FilterContent ( ContentFileCollection contentFileCollection, IEnumerable ids ) : ICollection

Filters the content based on the browser requesting the content. If the browser attribute is set then the other browser attributes must be set in order to work for that particular item. If they are not set then the file is added to the collection. If the browser attributes are set then the requesting browser must match or be in between the major and minor versions set in the configuration file.

Method Details

ContentFilesManager() public méthode

Initializes a new instance of the ContentFilesManager class.
public ContentFilesManager ( IAppSettings appSettings ) : System
appSettings IAppSettings The app settings.
Résultat System

GetFiles() public méthode

Get either the css or javascript files. Content will be filter based on the browser requesting the content if the browser attributes are set within the configuration file.
public GetFiles ( ContentFilesType filesType, int id ) : ICollection
filesType ContentFilesType Type of the files.
id int The id.
Résultat ICollection