C# Класс Te.StahpIt.Filtering.FilteringCategory

The FilteringCategory class represents a category that includes a source of filtering rules, which is supplied to the filtering Engine. FilteringCategory objects are, once loaded, given over to the user to enable and disable.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FilteringCategory ByteSizeLib
IsListExpired bool

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

Метод Описание
Dispose ( ) : void
FilteringCategory ( Engine engine ) : ByteSizeLib

Constructs a new filtering category. All members must be manually set, barring the ID. This is automatically generated within the constructor.

UpdateAndLoad ( ) : void

Updates, if necessary, the rule list and loads it into the Engine for use.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
FilteringCategory ( ) : ByteSizeLib
IsListExpired ( ) : bool

Checks if the current list is expired.

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

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Constructs a new filtering category. All members must be manually set, barring the ID. This is automatically generated within the constructor.
/// The maximum number of categories is equal to the numeric limits of an 8 bit integer. /// Category ID are automatically generated from a static, Interlocked controlled count, then /// the result of the interlocked incremement is tested against this numeric limit. In other /// words, if more categories than this limit permits are constructed, this constructor will /// throw. /// /// In the event that the supplied Engine reference is null, will throw ArgumentException. ///
public FilteringCategory ( Engine engine ) : ByteSizeLib
engine Engine
Результат ByteSizeLib

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

Updates, if necessary, the rule list and loads it into the Engine for use.
/// If updating, while attempting to download the list source, this exception may be thrown /// by the WebClient. This exception is not handled internally in order to allow users of the /// model to handle them. This exception will also be manually thrown if no file is present /// after the download. /// /// If updating, while attempting to download the list source, this exception may be thrown /// by the WebClient. This exception is not handled internally in order to allow users of the /// model to handle them. This exception may also be thrown if the file downloaded is larger /// than a hard-coded accepted memory limit. /// /// If updating, while attempting to parse the date, this exception may be thrown. This /// exception is not handled internally in order to allow users of the model to handle them. /// /// If updating, while attempting to parse the date, this exception may be thrown. This /// exception is not handled internally in order to allow users of the model to handle them. ///
public UpdateAndLoad ( ) : void
Результат void