C# Класс Common.HttpCompress.Settings

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
InitTypes ( ) : void
ParseExcludedPaths ( XmlNode node ) : void
ParseExcludedTypes ( XmlNode node ) : void
Settings ( ) : System

Описание методов

AddSettings() публичный Метод

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
Результат void

GetSettings() публичный статический Метод

Get the current settings from the xml config file
public static GetSettings ( ) : Settings
Результат Settings

IsExcludedMimeType() публичный Метод

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.
Результат bool

IsExcludedPath() публичный Метод

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
Результат bool

Settings() публичный Метод

Create an HttpCompressionModuleSettings from an XmlNode
public Settings ( XmlNode node ) : System
node System.Xml.XmlNode The XmlNode to configure from
Результат System