C# Class Common.HttpCompress.Settings

Exibir arquivo Open project: rabbal/Mvc5 Class Usage Examples

Public Methods

Method Description
AddSettings ( XmlNode node ) : void

Suck in some more changes from an XmlNode. Handy for config file parenting.

GetSettings ( ) : Settings

Get the current settings from the xml config file

IsExcludedMimeType ( string mimetype ) : bool

Checks a given mime type to determine if it has been excluded from compression

IsExcludedPath ( string relUrl ) : bool

Looks for a given path in the list of paths excluded from compression

Settings ( XmlNode node ) : System

Create an HttpCompressionModuleSettings from an XmlNode

Private Methods

Method Description
InitTypes ( ) : void
ParseExcludedPaths ( XmlNode node ) : void
ParseExcludedTypes ( XmlNode node ) : void
Settings ( ) : System

Method Details

AddSettings() public method

Suck in some more changes from an XmlNode. Handy for config file parenting.
public AddSettings ( XmlNode node ) : void
node System.Xml.XmlNode The node to read from
return void

GetSettings() public static method

Get the current settings from the xml config file
public static GetSettings ( ) : Settings
return Settings

IsExcludedMimeType() public method

Checks a given mime type to determine if it has been excluded from compression
public IsExcludedMimeType ( string mimetype ) : bool
mimetype string The MimeType to check. Can include wildcards like image/* or */xml.
return bool

IsExcludedPath() public method

Looks for a given path in the list of paths excluded from compression
public IsExcludedPath ( string relUrl ) : bool
relUrl string the relative url to check
return bool

Settings() public method

Create an HttpCompressionModuleSettings from an XmlNode
public Settings ( XmlNode node ) : System
node System.Xml.XmlNode The XmlNode to configure from
return System