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
ファイルを表示 Open project: zachariahyoung/virtualaltnet

Public Methods

Method 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

Method 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 method

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

GetFiles() public method

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.
return ICollection